[SciPy-user] Bug in find_objects? (Was: Re: image processing)

Vicent Mas (V+) vmas at carabos.com
Mon Oct 30 15:59:17 EST 2006


El Tuesday, 24 de October de 2006 13:41, Gary Ruben escribió:
> I haven't actually tried this, but I think you should take a look at
> scipy.ndimage.measurements.label
> followed by
> scipy.ndimage.measurements.find_objects
> and
> scipy.ndimage.measurements.maximum
>
> These sound like they will do what you want.
>
> Gary R.
>
> Carlos Medrano wrote:
> > Vicent Mas (V+ <vmas <at> carabos.com> writes:
> >> Hello,
> >>
> >> I'm a newcomer to process image and scipy. I'm trying to process a
> >> binary image in order to get the biggest connected component. In
> >> matlab one can use the bwareaopen to achieve this goal but I don't
> >> know how to do it with scipy.  I've been looking at scipy.ndimage
> >> module with no luck. Could you help me, please?
> >>
> >> Thanks in advance.
> >
>> [...]

Hello,


I'm trying to use Gary's receipt (thanks Gary, and sorry for answering 
so slowly :-( but I get the following error (as can be seen running the 
attached script):

Traceback (most recent call last):
  File "finder.py", line 13, in ?
    measurements.find_objects(label_matrix)
  
File "/usr/local/lib/python2.4/site-packages/scipy/ndimage/measurements.py", 
line 89, in find_objects
    return _nd_image.find_objects(input, max_label)
RuntimeError: data type not supported


It seems to be a bug. Am I right? Or am I doing something stupid?

Thanks in advance for your help.

-- 
::

	 \ /	Vicent Mas	http://www.carabos.com
	 0;0	
	/   \	Cárabos Coop.	Enjoy Data
	V   V
	 " "
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finder.py
Type: application/x-python
Size: 340 bytes
Desc: not available
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20061030/6b3370ba/attachment.bin>


More information about the SciPy-User mailing list