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

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

[Octave-bug-tracker] [bug #59502] imread doesn't read correctly 1-bit de


From: alexis rivera
Subject: [Octave-bug-tracker] [bug #59502] imread doesn't read correctly 1-bit depth .pgm file
Date: Sun, 22 Nov 2020 21:17:56 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:83.0) Gecko/20100101 Firefox/83.0

URL:
  <https://savannah.gnu.org/bugs/?59502>

                 Summary: imread doesn't read correctly 1-bit depth .pgm file
                 Project: GNU Octave
            Submitted by: arivera
            Submitted on: Mon 23 Nov 2020 02:17:54 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: alexis
        Originator Email: 
             Open/Closed: Open
                 Release: 5.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi,

I created a 64x64 1-bit depth pgm file containing an ellipse.  When I read it
as follows:
X = imread('test.pgm')

The result is a 64 matrix of all ones.

However, imread works fine with a 64x64 .pbm file
X = imread('test.pbm') % this works

I am running octave-5.2.0_1-w32 on a windows 10 machine.  Another detail is
that I downloaded the .zip file instead of the installer.  

Thanks,
Alexis




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 23 Nov 2020 02:17:54 AM UTC  Name: test.pgm  Size: 4KiB   By:
arivera
test images
<http://savannah.gnu.org/bugs/download.php?file_id=50317>
-------------------------------------------------------
Date: Mon 23 Nov 2020 02:17:54 AM UTC  Name: test.pbm  Size: 521B   By:
arivera
test images
<http://savannah.gnu.org/bugs/download.php?file_id=50318>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59502>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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