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

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

[Octave-bug-tracker] [bug #49613] image package - regionprops.m majoraxi


From: Hartmut
Subject: [Octave-bug-tracker] [bug #49613] image package - regionprops.m majoraxislength broken
Date: Sat, 17 Dec 2016 20:34:52 -0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

URL:
  <http://savannah.gnu.org/bugs/?49613>

                 Summary: image package - regionprops.m majoraxislength broken
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Tue 15 Nov 2016 09:33:59 PM GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

This problem happens with the current version 2.6.1 of the image package. It
still worked fine with the older version of regionprops.m that is in the
release image-2.4.1.

The property "majoraxislenght" and "minoraxislength" seem to be corrupted
somewhere on their way through regionprops.m. If I observe this right, the
results are fine when I only request those properties from a single region.
But once I request those properties simultanously from several regions at
once, I get corrupted results.

Here is a small script to reproduce the behavior. It uses the attached
png-file "rechtecke.png":


clear, close all

I = imread('rechtecke.png');
schwelle = graythresh(I);
BW = im2bw(I, schwelle);
L = bwlabel(BW);
L_rgb = label2rgb(L, 'hsv');
imshow(L_rgb);
title('labelled regions');

props = regionprops(L,'MajorAxisLength','MinorAxisLength');
major=[props.MajorAxisLength]';
minor=[props.MinorAxisLength]';
figure, plot(major, minor, 'x');
xlabel('major axis length');
ylabel('minor axis length');


The second plot obviously does not show the correct major and minor axis
length with image-2.6.1. If you use image-2.4.1 instead you can see the
correct and expected result. I will also attach those two screenshots.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 15 Nov 2016 09:33:59 PM GMT  Name: rechtecke.png  Size: 6kB   By:
hardy

<http://savannah.gnu.org/bugs/download.php?file_id=38977>
-------------------------------------------------------
Date: Tue 15 Nov 2016 09:33:59 PM GMT  Name: correct-result_image-2.4.1.png 
Size: 10kB   By: hardy

<http://savannah.gnu.org/bugs/download.php?file_id=38978>
-------------------------------------------------------
Date: Tue 15 Nov 2016 09:33:59 PM GMT  Name: wrong-result_image-2.6.1.png 
Size: 9kB   By: hardy

<http://savannah.gnu.org/bugs/download.php?file_id=38979>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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