How to transform double to unit8

4 ビュー (過去 30 日間)
Sivakumar Rajagopal
Sivakumar Rajagopal 2020 年 4 月 3 日
for i = 1:1:291 %go through rows
for j = 1:1:240 %columns
img_heq(i, j) = T(img(i,j));
end
end
ERROR: Variable img_heq must be of data type uint8. It is currently of type double.
How to recity the varibale error problem.

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 4 月 3 日
  1 件のコメント
Sivakumar Rajagopal
Sivakumar Rajagopal 2020 年 4 月 3 日
for i = 1:1:291 %go through rows
for j = 1:1:240 %columns
img_heq(i, j) = T(img(i,j));
img_heq=im2uint8(img_heq(i,j));
end
end
Error: Variable img_heq must be of size [291 240]. It is currently of size [1 1]. Check where the variable is assigned a value.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by