Image is homogenous,white bright.?

Image is homogenous,white bright. can you explain what is homogenous and white bright. I tried
I = imread('circuit.tif');
glcm = graycomatrix(I,'Offset',[2 0]);
stats = graycoprops(glcm,{'contrast','homogeneity'});
I have added input image and i marked the region of interest. I tried bwlabel and extracted the elliptical shape within that red region.I want to check whether the region is
  1. homogeneous bright white
  2. inhomogeneous with or without horizontal bands
  3. inhomogeneous gray
  4. inhomogeneous gray to black
  5. inhomogeneous black
How to write a code to distinguish this

Risposte (1)

Image Analyst
Image Analyst il 15 Giu 2016

0 voti

I guess homogeneous and bright white would mean that the image is a uniform gray level of 255 or 65535 depending on if it's an 8 or 16 bit image.

10 Commenti

You said you "extracted the elliptical shape within that red region" so just pass those gray levels into std() and see what the standard deviation is.
leena
leena il 16 Giu 2016
can you help me the code of that .how to pass gray levels into std()
Obj = [42 43 45 48 49 51 52 54 57];
for k = Obj
s(k).StandardDeviation = std(double(s(k).PixelValues));
text(s(k).Centroid(1),s(k).Centroid(2), ...
sprintf('%2.1f', s(k).StandardDeviation), ...
'EdgeColor','b','Color','r');
thisBB = s(k).BoundingBox;
end
If this is ok, i got 92.1 and 95.3 since it is a broken region
OK. Do you have a question? Can you show your binary image?
leena
leena il 18 Giu 2016
leena
leena il 18 Giu 2016
i want to know whether the region falls within 1-5 classifications. How to check it?
leena
leena il 20 Giu 2016
@Image Analyst please help me
I don't know what all your 5 classifications mean, but you have to reduce them to comparisons of mean, std dev, and pattern.
leena
leena il 5 Lug 2016
@ImageAnalyst how inhomogeneous with or without horizontal bands is identified"?how to modify this code?
You need to define some threshold
if std(ROI(:)) > 5 % Or whatever value you want
% It's not homogeneous
else
% It's homogeneous
end

Accedi per commentare.

Richiesto:

il 15 Giu 2016

Commentato:

il 5 Lug 2016

Community Treasure Hunt

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

Start Hunting!

Translated by