On 64bit system the bwlabel works weird
Bug #1273239 reported by
Tomio
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ImageP |
Fix Released
|
High
|
Tomio |
Bug Description
On 64bit Ubuntu the program installs, but the bwlabel returns weird results: a half image with a high number of 1 pixel hits. The python source works fine.
To post a comment you must log in.
The problem is in the Csources.py: gcc uses 4 byte ints even on 64 bit platforms, where the nu.int and python ints are 64 bit long. This makes a missmatch between how numpy and the c code accesses the arrays.
Quick fix: redefine nu.int to nu.intc.
The 0.295a release have this fixed.