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

 
 

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

Submitted by:  Faisal Ardhy <faisalardhy>
Submitted on:  Sun 28 Sep 2014 05:41:04 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: DuplicateAssigned to: None
Originator Name: Faisal ArdhyOpen/Closed: Closed
Release: otherOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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:

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 File(s):
   
   
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
  • -unavailable- added by faisalardhy (Submitted the item)
  • -unavailable- added by faisalardhy (Image Processing problem)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Nov 2015 02:52:14 PM UTCcarandraugSummaryimage package: imadjust only works for doubl=>image package: imadjust only works for double
    Sun 28 Sep 2014 06:16:37 PM UTCcarandraugStatusNone=>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
    Sun 28 Sep 2014 05:41:04 AM UTCfaisalardhyAttached File-=>Added original_image.png, #32189
      Attached File-=>Added Using_Octave.png, #32190
      Attached File-=>Added Using_MATLAB.png, #32191
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1