Borrar filtros
Borrar filtros

video processing command help

1 visualización (últimos 30 días)
James
James el 14 de Jul. de 2011
Can anyone tell me what the following command does?
imgI = double(imread(imgIFile))
Thanks

Respuesta aceptada

Jan
Jan el 14 de Jul. de 2011
imglFile : String variable, which contains the name of an image file
imread: Read the image file into a Matlab array
double: convert the array to the double type.
The whole line imports the contents of the image file into a DOUBLE array. "help imread", "help double" would be helpful also.
  3 comentarios
Sean de Wolski
Sean de Wolski el 14 de Jul. de 2011
Your image is probably 8bit unsigned integer - that is, it can be any integer between 0 and 255. So, converting it to double allows it to be any value, up to 16 sigfigs between: 2.2251e-308 and 1.7977e+308
Walter Roberson
Walter Roberson el 14 de Jul. de 2011
Note: it might perhaps make more sense to use im2double() as that rescales the data as well as changing the data type.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by