[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38464] image: regionprops misses some pixels?
From: |
Andreas Weber |
Subject: |
[Octave-bug-tracker] [bug #38464] image: regionprops misses some pixels? |
Date: |
Sat, 02 Nov 2013 17:02:55 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9 |
Follow-up Comment #4, bug #38464 (project octave):
The script in the "original submission" shows an image and plots which are
bsed on data in bwlabel_miss.mat.
"lblNodes" in bwlabel_miss.mat shows no error and
"data" is missing. If I create nodes with a current regionprops from hg
sources it includes all regions.
Please mention that there is an error in your script:
When generating
data = regionprops (lblNodes, "Centroid");
nodes = zeros (length (data), 2);
for i=1:length (data)
nodes(i, [2 1]) = data(i).Centroid;
end
and plotting nodes with
plot(nodes(:,1),nodes(:,2),"om")
x and y is swapped. I I use your original script and change x/y:
plot(nodes(:,2),nodes(:,1),"om")
all regions are shown.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38464>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/