comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Help with counting irregular shapes on a Black-White Image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Help with counting irregular shapes on a Black-White Image [message #31913] Fri, 23 August 2002 15:38
btupper is currently offline  btupper
Messages: 55
Registered: January 2002
Member
On Fri, 23 Aug 2002 12:12:05 -0700, "Huayi Dong" <huayidon@usc.edu>
wrote:

> I have a black-white image (only color available is black and white), and on
> the image there are a number of dots and irregular shapes, what's an
> efficient way for me to calculate the number of dots or irregular shapes?
> Thanks!
>

Hello,

Try using the LABEL_REGION function.

Result = LABEL_REGION( Data [, /ALL_NEIGHBORS] [, /ULONG] )

Be advised that features along the edge of the image will lose the
edge pixels in the returned image.

Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help with counting irregular shapes on a Black-White Image
Next Topic: directInput dlm available (win32 only)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:23:56 PDT 2025

Total time taken to generate the page: 0.00564 seconds