octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46099] image package: edge(I, 'canny') gives


From: anonymous
Subject: [Octave-bug-tracker] [bug #46099] image package: edge(I, 'canny') gives very bad quality results
Date: Thu, 26 Nov 2015 11:15:51 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #2, bug #46099 (project octave):

I'm evaluating an image binarization code (originaly developed for Matlab)
with Octave (4.0.0) and image package (2.4.1). After some investigation on why
I'm getting worse results with Octave than with Matlab (R2012b), I've found
that edge function with 'Canny' method outputs a much noisier result with
Octave than with Matlab. In order to give an example, I've run the following
code with both software:


clear, close all;
I = imread('sample2.png');
thresholds = [5.2742e-004 0.3899];
BW = edge(I, 'Canny', thresholds);
imwrite(BW, 'result_edge_canny_sample2.png');


As one can see in the attached files, "Octave_result_edge_canny_sample2.png"
is much noisier than "ML2012b_result_edge_canny_sample2.png". As a result, the
binarized image (generated by the image binarization code, which uses edge
function with 'Canny' method) is also noisy and almost useless.

(file #35558, file #35559, file #35560)
    _______________________________________________________

Additional Item Attachment:

File name: sample2.png                    Size:23 KB
File name: Octave_result_edge_canny_sample2.png Size:3 KB
File name: ML2012b_result_edge_canny_sample2.png Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46099>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]