How to transform double to unit8

4 visualizaciones (últimos 30 días)
Sivakumar Rajagopal
Sivakumar Rajagopal el 3 de Abr. de 2020
Comentada: Sivakumar Rajagopal el 3 de Abr. de 2020
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.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 3 de Abr. de 2020
  1 comentario
Sivakumar Rajagopal
Sivakumar Rajagopal el 3 de Abr. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by