[Insight-users] Bounding box of on pixels in an image
Radhika Sivaramakrishna
Radhika Sivaramakrishna" <radshashi at earthlink . net
Wed, 10 Dec 2003 13:21:18 -0800
This is a multi-part message in MIME format.
------=_NextPart_000_004E_01C3BF20.7F002340
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Luis,
This question may have been asked before. I have a binary 2D image. I =
want to find the bounding box (min,max of x and y) of all ON pixels in =
the image. The only way I can think of is, Getting index of each on =
pixel using an iterator and finding min, max values on x and y. Is there =
already a function to do this?
Also, is there a function to find # of ON pixels in a binary image? Or =
do we have to again use an iterator to count ON pixels?
Radhika
------=_NextPart_000_004E_01C3BF20.7F002340
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3810.1700" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Luis,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>This question may have been asked =
before. I have a=20
binary 2D image. I want to find the bounding box (min,max of x and y) of =
all ON=20
pixels in the image. The only way I can think of is, Getting index of =
each on=20
pixel using an iterator and finding min, max values on x and y. Is there =
already=20
a function to do this?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Also, is there a function to find # of =
ON pixels in=20
a binary image? Or do we have to again use an iterator to count ON=20
pixels?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Radhika</FONT></DIV></BODY></HTML>
------=_NextPart_000_004E_01C3BF20.7F002340--