[Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

Sebastian Haase seb.haase at gmail.com
Mon May 3 03:55:44 EDT 2010


Hi Stéfan,

I have actually not been using scikits.image so far.
Maybe I should give it a try.
Are you saying that scikits.image.measurements has its own
implementation of ndimage.label !?
My original post was actually referring to a C++ function I wrote to
calculate 2nd-order moments of labeled objects.
I have that restricted to 3D contiguous data.

scikits.image might already have had this function implementer in a
general way ;-)

Regards,
Sebastian


2010/5/1 Stéfan van der Walt <stefan at sun.ac.za>:
> Hi Sebastian
>
> On 27 April 2010 10:27, Sebastian Haase <seb.haase at gmail.com> wrote:
>> Hi,
>> I wanted to write some C code to accept labels as they come from ndimage.label.
>> For some reason ndimage.label produces its output as an int32 array -
>> even on my 64bit system .
>
> I've merged Thouis's patch to implement scikits.image.measurements in
> pure Python.  Would you please try the SVN version and see if it
> solves your problem, and also whether it performs to your
> satisfaction?
>
> Regards
> Stéfan
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list