[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38464] IMAGE: bwlabel misses some pixels?
From: |
Juan Pablo Carbajal |
Subject: |
[Octave-bug-tracker] [bug #38464] IMAGE: bwlabel misses some pixels? |
Date: |
Mon, 04 Mar 2013 18:54:09 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22 |
URL:
<http://savannah.gnu.org/bugs/?38464>
Summary: IMAGE: bwlabel misses some pixels?
Project: GNU Octave
Submitted by: juanpi
Submitted on: Mon 04 Mar 2013 06:54:08 PM GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: juanpi
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
Execute the following script (fiel with data attached)
load "bwlabel_miss.mat"
imshow (imgNodes);
hold on
plot(nodes(:,1),nodes(:,2),"om")
You see that some nodes are not plotted. The matrix lblNodes (also in the
file) and the matrix nodes were generated with the following script
lblNodes = bwlabel (imgNodes, 4);
data = regionprops (lblNodes, "Centroid");
nodes = zeros (length (data), 2);
for i=1:length (data)
nodes(i, [2 1]) = data(i).Centroid;
end
Apparently bwlabel nodes misses some of the pixels.
I checked that regionpropos is giving the correct result with other images.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 04 Mar 2013 06:54:08 PM GMT Name: bwlabel_miss.mat Size: 158kB
By: juanpi
<http://savannah.gnu.org/bugs/download.php?file_id=27565>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38464>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #38464] IMAGE: bwlabel misses some pixels?,
Juan Pablo Carbajal <=