フィルターのクリア

Problem understanding image processing tool

2 ビュー (過去 30 日間)
Saqib
Saqib 2014 年 4 月 18 日
編集済み: Saqib 2014 年 4 月 22 日
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.

採用された回答

Image Analyst
Image Analyst 2014 年 4 月 19 日
編集済み: Image Analyst 2014 年 4 月 21 日
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 件のコメント
Image Analyst
Image Analyst 2014 年 4 月 22 日
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 2014 年 4 月 22 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by