Borrar filtros
Borrar filtros

SQRT function doesn't work on uint16 image type

15 visualizaciones (últimos 30 días)
Imam
Imam el 10 de Dic. de 2014
Comentada: Star Strider el 10 de Dic. de 2014
So, my problem is: I have to load an image in png format an represent it as a matrix. I can do it with imread. But as soon as I performed function like sqrt it shows error message:
Undefined function 'sqrt' for input arguments of type 'uint16'
What should I do? Can somebody help?

Respuesta aceptada

Star Strider
Star Strider el 10 de Dic. de 2014
Convert them to the double data type first.
  2 comentarios
Imam
Imam el 10 de Dic. de 2014
Ok thanks a lot.
Star Strider
Star Strider el 10 de Dic. de 2014
My pleasure!

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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by