Borrar filtros
Borrar filtros

Extracting digital numbers from color panels in images

2 visualizaciones (últimos 30 días)
Ali Ibrahim
Ali Ibrahim el 28 de En. de 2017
Comentada: Ali Ibrahim el 16 de Feb. de 2017
Hello, Can anyone help me to fix this code? I am done with it, but it seems there is an error FIND ATTACHED Best,
  2 comentarios
Image Analyst
Image Analyst el 28 de En. de 2017
You forgot to attach 'CIMG6786.jpg' so we can't run your code until then.

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 28 de En. de 2017
Editada: Image Analyst el 28 de En. de 2017
VARI has some nans because of a divide by zero. Set nans to zero like this
VARI(isnan(VARI)) = 0;
The other main problem with the code is that there are no comments in it, so it's not maintainable.
  10 comentarios
Walter Roberson
Walter Roberson el 11 de Feb. de 2017
In your get_image_point routine, you have
if size(loc)>1
which should probably be
if size(loc, 1)>1
However, you can skip the test by just coding
loc = loc(1,1:2);
without checking the size.
Ali Ibrahim
Ali Ibrahim el 16 de Feb. de 2017
I have a question.. when I get VCI statistics, I noticed that the value of MAX is 34, which is unusual as the other entries MAX are 1, 1 , 1. Can you help me to fix that? Thanks

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by