Borrar filtros
Borrar filtros

Problem understanding image processing tool

2 visualizaciones (últimos 30 días)
Saqib
Saqib el 18 de Abr. de 2014
Editada: Saqib el 22 de Abr. de 2014
Hi, i am new to MATLAB image processing.
I want to carry out my B.Tech project with regard to the determination of "Moisture Content" using image processing & in this regard i downloaded a research paper
An approach to estimate moisture content of apple with image processing method by Farshad Vesali, Masoud Gharibkhani and Mohmmad Hasan Komarizadeh
I was successfully able to generate the BW image as given below by using the help of the video "image processing made easy" video on the MATLAB site but i am unable to understand how to get the values of zi for using in equations 1 through 7 as shown in the images below and am not able to understand the paragraph just after the equations.
So, if anyone of you may be interested in helping me out i understanding these equations and helping me in using MATLAB Image Processing toolbox please post a REPLY as soon as possible as i have to report the project on Monday.
Thanks
If you can help me on Facebook or SKYPE also through video chat also.

Respuesta aceptada

Image Analyst
Image Analyst el 19 de Abr. de 2014
Editada: Image Analyst el 21 de Abr. de 2014
Well I did the masking part of your B.Tech project for you in http://www.mathworks.com/matlabcentral/answers/126363#answer_133893. I imagine you'll need to do some of the project yourself, so programming in those 5 equations seems simple enough. I'll give you the first two as a freebie:
I = mean2(grayImage);
v = var(grayImage);
S = 1 - (1 / (1+v));
pz is the pdf, which is the normalized histogram so
[pz, z] = imhist(grayImage) / numel(grayImage);
I trust that, knowing that, you can do equations 5, 6, and 7 yourself, right?
  38 comentarios
Image Analyst
Image Analyst el 22 de Abr. de 2014
Looks like you need to use the log conversion functions to get log to the base 2, which is not in MATLAB. Also you need to make sure pz if not zero for any value because the log of that is -infinity.
Saqib
Saqib el 22 de Abr. de 2014
I = 211.448117
v = 4864.005420
S = 1.000000
U = 0.508117
e = NaN
mew = -360081.533419>>
actually for pz its showing an array & not a single value
this might be causing he error i think

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical 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