#21 better 2D photo/image viewing

open
None
7
2013-01-24
2010-02-20
Chris Marshall
No

The current TriD imagrgb() routine does not naturally
support RGB photo display:

(1) The image is scaled to fit the default window
size rather than maintaining square pixels as
is usually desired for photo/image display.

(2) The image window comes up with default aspect
even if created by the imagrgb call---it would
be better if it "fit" the image to be displayed

(3) It would be nice if integer data were
autoscaled to the 0..1 float range to simplify
image display (i.e. 24bit color photos)

To replicate this with perldl:

use PDL::Graphics::TriD;
$im = sequence(8,6)/48;
imagrgb $im(*3);

As an example of (3), it would be nice if
using $im = sequence(8,6) would work as
well, without the division by 48.

NOTE: The aspect ratio problems have been addressed
in the imag2d() routine currently being tested in the
PDL-2.4.6+ release.

Discussion

  • Chris Marshall
    Chris Marshall
    2010-08-01

    • priority: 1 --> 7
     
  • Chris Marshall
    Chris Marshall
    2010-08-01

    Raising the priority for this request as it would be nice to finish for PDL-2.4.7

     
  • Chris Marshall
    Chris Marshall
    2010-08-01

    • assigned_to: nobody --> marshallch
     
  • Chris Marshall
    Chris Marshall
    2010-08-20

    Lowering the priority a bit since the basic features made it into the PDL-2.4.7 release in PDL::Graphics2D.

    Still to do: add support for threading and clean up the event loop stuff so the imag2d() windows and the imagrgb() (and other TriD) windows activate with the same twiddle function.

     
  • Chris Marshall
    Chris Marshall
    2010-08-20

    • priority: 7 --> 5
     
  • Chris Marshall
    Chris Marshall
    2011-03-25

    Sill a work in progress. This will not be completed
    for the PDL-2.4.8 release as it depends on some upcoming
    refactoring planned with respect to OpenGL and TriD.

     
  • Chris Marshall
    Chris Marshall
    2011-10-03

    • priority: 5 --> 6
     
  • Chris Marshall
    Chris Marshall
    2013-01-24

    • priority: 6 --> 7
     
  • Chris Marshall
    Chris Marshall
    2013-01-24

    Planning to wrap this up for PDL-2.4.12. Still to do for imag2d:
    - autoconvert image data
    - add auto-stretch for display
    - add widget to show pixel location and values
    - pixel value from data not display image