DSPRelated.com
Forums

Area covered by the pixel

Started by cole...@gmail.com August 12, 2009
I've an image read into matlab as matrix.I'll like to determine the area covered by the pixels of certain value. I don't have image toolbox processing. I'll like do the coding directly.

Please advise.

Thanks for your usual help.
Kay Ajayi-

> I've an image read into matlab as matrix.I'll like to determine
> the area covered by the pixels of certain value. I
> don't have image toolbox processing. I'll like do the coding
> directly.

Can't you just count all the values in the matrix that are equal to what you want?

For an image, "area" depends on what hardware and how the image is rendered. I think it's called "dot pitch"... and
from that you could get mm2 or other actual area-per-pixel figure, then just sum.

-Jeff