[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38464] image: regionprops misses some pixels?
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #38464] image: regionprops misses some pixels? |
Date: |
Sun, 03 Nov 2013 05:40:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9 |
Update of bug #38464 (project octave):
Status: None => Duplicate
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #7:
So I took a closer look to this, compared with Matlab and Octave's image
package old and development release and swapping the order on the call to
plot. The bug is fixed now (it's a duplicate of bug #39701).
The code in the original submission is wrong. Even in Matlab is wrong, the
coordinates are swapped. If they are fixed as suggested on comment #4, then it
works in Matlab. I'm guessing the reason why they were swapped to start with
is because of bug #39701 (now fixed) that caused regionprops to soemtimes
return the Centroid coordinates swap (and in the attached image it was doing
it for most of the objects) so swapping was actually trying to fix it (but
then the correct ones were wrong).
Current version of the Octave package (cset 939332b5142e) works fine and I
don't see any object being missed. If I undo cset ab0ac77d350b (which fixed
bug #39701) then I get a big mess. Swapping back the coordinates to the wrong
order, it plots the circle on most of the centroid coordinates and looks like
it's missing some objects but in reality it's just drawing them in other
places. The ones being drawn correctly (the majority) are actually the ones
with the wrong coordinates that regionprops was swapping.
Closing as duplicate.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38464>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/