From: saurabh pandey on
how to calculate area of a grayscale image?
From: Walter Roberson on
saurabh pandey wrote:
> how to calculate area of a grayscale image?

Multiply the height by the width ?

Other than that, consider thresholding the image to binary and using
bwarea()
From: saurabh pandey on
Walter Roberson <roberson(a)hushmail.com> wrote in message <1GlOn.41508$Ak3.35826(a)newsfe16.iad>...
> saurabh pandey wrote:
> > how to calculate area of a grayscale image?
>
> Multiply the height by the width ?
>
> Other than that, consider thresholding the image to binary and using
> bwarea()

actually sir i made a code for segmentation of images using morphology.now i want to anaylse quantitatively that by how much percent the image is segmented?
if i convert the image to binary,then i think it is not a best way.
is there any method to analyse the segmentation?
From: ImageAnalyst on
On Jun 5, 2:19 am, "saurabh pandey" <sathiya_saur...(a)yahoo.co.in>
wrote:
> actually sir i made a code for segmentation of images using morphology.now i want to anaylse quantitatively that by how much percent the image is segmented?
> if i convert the image to binary,then i think it is not a best way.
> is there any method to analyse the segmentation?

----------------------------------------------------------------------
So you did some grayscale morphology on a grayscale image and now you
have a grayscale image. You didn't convert the image to binary so
exactly which of the gray pixels do you consider to be the "segmented"
ones and which are unsegmented?

I don't think you have a segmentation. You just have a grayscale
image so all you can do now are things like calculating the mean of
the whole image, it's standard deviation, centroid, and things like
that. You can't calculate the area of anything because you haven't
defined any object yet in the image. All you have is the whole image
so like Walter said you can only calculate the area of the whole image.
From: saurabh pandey on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <691b8b64-1fde-49b3-9626-1c0d955c953c(a)a30g2000yqn.googlegroups.com>...
> On Jun 5, 2:19 am, "saurabh pandey" <sathiya_saur...(a)yahoo.co.in>
> wrote:
> > actually sir i made a code for segmentation of images using morphology.now i want to anaylse quantitatively that by how much percent the image is segmented?
> > if i convert the image to binary,then i think it is not a best way.
> > is there any method to analyse the segmentation?
>
> ----------------------------------------------------------------------
> So you did some grayscale morphology on a grayscale image and now you
> have a grayscale image. You didn't convert the image to binary so
> exactly which of the gray pixels do you consider to be the "segmented"
> ones and which are unsegmented?
>
> I don't think you have a segmentation. You just have a grayscale
> image so all you can do now are things like calculating the mean of
> the whole image, it's standard deviation, centroid, and things like
> that. You can't calculate the area of anything because you haven't
> defined any object yet in the image. All you have is the whole image
> so like Walter said you can only calculate the area of the whole image.

no sir actually i have converted the image to binary image.and then i applied morphological image processing on it and segment the area of interest which is also a binary image(black and white).now i find the perimeter of my segmented image and overlay(downloaded from steve blog) that perimeter to my grayscale image.now the area of segmented image can be calculated by the image for which i calculate the perimeter using bwarea, because it is a binary image.but how can i calculate the area for gray image so dividing the area of segmented image by area of gray image i could found the percent of segmentation, i.e.,by how much percent the original gray image is segmented.
can you please tell me what is meant by area in gray and binary image?

thank you for your support.