bugGNU Octave - Bugs: bug #43315, image package: imadjust only works...

 
 

bug #43315: image package: imadjust only works for double

Submitter:  Faisal Ardhy <faisalardhy>
Submitted:  Sun 28 Sep 2014 05:41:04 AM UTC
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Faisal Ardhy Open/Closed:  * Closed
Release:  * other Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Wed 18 Nov 2015 02:52:14 PM UTC, comment #2: 

This has now been fixed with  http://hg.code.sf.net/p/octave/image/rev/b9120f602e44 and will be part of the next minor release (2.6.0 or later)

See bug #42115 for more details.

Carnë Draug <carandraug>
Project Member
Sun 28 Sep 2014 06:16:37 PM UTC, comment #1: 

Hi! Thank you for the bug report. This is a known bug, see duplicates bug #42115 and bug #40109

The problem is that the imadjust() function was originally written for images of class double (where all values are on the range [0 1]). No one has yet bothered to fix it. Could you please submit a patch for this?

You can temporarily work around this by doing:

J = imadjust (im2double (I), [0.15 0.9], [1 0]);

Carnë Draug <carandraug>
Project Member
Sun 28 Sep 2014 05:41:04 AM UTC, original submission:  

I use this script in MATLAB and Octave (with image package installed)

--------
I=imread('rice.tif');
J=imadjust(I,[0.15 0.9],[1 0]);
figure,imshow(I); figure,imhist(I);
figure,imshow(J); figure,imhist(J);
---------

But the result is different.

Faisal Ardhy <faisalardhy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32189:  original_image.png added by faisalardhy (49KiB - image/png - Image Processing problem)
file #32190:  Using_Octave.png added by faisalardhy (5KiB - image/png - Image Processing problem)
file #32191:  Using_MATLAB.png added by faisalardhy (57KiB - image/png - Image Processing problem)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by faisalardhy (Submitted the item)
  • -email is unavailable- added by faisalardhy (Image Processing problem)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-18 carandraug Summaryimage package: imadjust only works for doubl image package: imadjust only works for double
    2014-09-28 carandraug StatusNone Duplicate
        Open/ClosedOpen Closed
        Release3.8.2 other
        Operating SystemMicrosoft Windows Any
        SummaryImage Package Bugs image package: imadjust only works for doubl
        Dependencies- Depends on bugs #42115
    2014-09-28 faisalardhy Attached File- Added original_image.png, #32189
        Attached File- Added Using_Octave.png, #32190
        Attached File- Added Using_MATLAB.png, #32191
        Carbon-Copy- Added -email is unavailable-

    Back to the top


    Powered by Savane 3.9