bugGNU Octave - Bugs: bug #65347, imread and imshow/imagesc...

 
 

bug #65347: imread and imshow/imagesc combination does not support image file controlled by transparency.

Submitter:  Liang Tang <lt1234>
Submitted:  Thu 22 Feb 2024 02:04:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 8.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 22 Feb 2024 02:04:47 PM UTC, original submission:  

Hi,

I understand transparency/alpha is not implemented in Octave.  This report is to point to a condition that the result is completely incorrect due to the current implementation.  Thanks. 

imread does not alter the values of the [n,n,3] based on the transparency/alpha.  imshow does not take transparency as an input. 
Therefore transparency of an image is completely lost once it is read in.  For a sample file in qt folder, the display is incorrect. 

im from doc_search is a [50,50,3], with a constant value for each of rgb. Transparency determines the display. 

[im, cmap, trans]=imread('C:\Octave\Octave-8.2.0\mingw64\qt5\doc\global\template\style\doc_search.png');
%
figure; subplot(1,2,1); imshow(im);  subplot(1,2,2); imshow(trans); saveas(gcf, 'doc_search.ofig');

Liang Tang <lt1234>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #55735:  qt_png_files.zip added by lt1234 (9KiB - application/x-zip-compressed)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lt1234 (Submitted the item)
  •  

    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 group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-22 lt1234 Attached File- Added qt_png_files.zip, #55735

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code