Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52456 > unrolled thread

python and displaying on 10 bit monitors

Started byrlkling@gmail.com
First post2013-08-13 05:25 -0700
Last post2013-08-14 08:07 +0100
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  python and displaying on 10 bit monitors rlkling@gmail.com - 2013-08-13 05:25 -0700
    Re: python and displaying on 10 bit monitors Terry Reedy <tjreedy@udel.edu> - 2013-08-13 12:31 -0400
    Re: python and displaying on 10 bit monitors Ian Kelly <ian.g.kelly@gmail.com> - 2013-08-13 12:35 -0600
      Re: python and displaying on 10 bit monitors rlkling@gmail.com - 2013-08-13 11:51 -0700
    Re: python and displaying on 10 bit monitors Nobody <nobody@nowhere.com> - 2013-08-14 08:07 +0100

#52456 — python and displaying on 10 bit monitors

Fromrlkling@gmail.com
Date2013-08-13 05:25 -0700
Subjectpython and displaying on 10 bit monitors
Message-ID<415cd70d-72e8-4a2b-9e2e-81420b146682@googlegroups.com>
Are there any python libraries that read and display High Dynamic Range images like this matlab code?

http://www.mathworks.com/matlabcentral/fileexchange/27115-hdr-image-viewer-for-deep-color-monitor

Or, asking another way, are there any python libraries that display images to 10 bit monitors as 10 bit images, and not scaled to 8 bit?

[toc] | [next] | [standalone]


#52466

FromTerry Reedy <tjreedy@udel.edu>
Date2013-08-13 12:31 -0400
Message-ID<mailman.542.1376411488.1251.python-list@python.org>
In reply to#52456
On 8/13/2013 8:25 AM, rlkling@gmail.com wrote:
> Are there any python libraries that read and display High Dynamic Range images like this matlab code?
>
> http://www.mathworks.com/matlabcentral/fileexchange/27115-hdr-image-viewer-for-deep-color-monitor
>
> Or, asking another way, are there any python libraries that display images to 10 bit monitors as 10 bit images, and not scaled to 8 bit?
>
I think that would depend on whether any of them wrap a C library that 
can do that. My guess is 'no'.

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#52469

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-08-13 12:35 -0600
Message-ID<mailman.544.1376418986.1251.python-list@python.org>
In reply to#52456
On Tue, Aug 13, 2013 at 6:25 AM,  <rlkling@gmail.com> wrote:
> Are there any python libraries that read and display High Dynamic Range images like this matlab code?
>
> http://www.mathworks.com/matlabcentral/fileexchange/27115-hdr-image-viewer-for-deep-color-monitor
>
> Or, asking another way, are there any python libraries that display images to 10 bit monitors as 10 bit images, and not scaled to 8 bit?

A Google search turns up this blog post:

http://hoganhdr.blogspot.com/2009/10/h2-image-viewer-python.html

No idea whether it works or not, and you'll have to fix the
indentation since the poster doesn't seem to know how to format Python
scripts for the web.

[toc] | [prev] | [next] | [standalone]


#52471

Fromrlkling@gmail.com
Date2013-08-13 11:51 -0700
Message-ID<3846728a-9051-4f65-a1d6-8e685bcffc3b@googlegroups.com>
In reply to#52469
Yea, that is not quite what I am looking for.  He uses Python Image Library and as far as I can tell it does not display the images as 10 bits on 10 bit displays.  So far the only app that I can find that does this is photoshop.

[toc] | [prev] | [next] | [standalone]


#52500

FromNobody <nobody@nowhere.com>
Date2013-08-14 08:07 +0100
Message-ID<pan.2013.08.14.07.07.25.45000@nowhere.com>
In reply to#52456
On Tue, 13 Aug 2013 05:25:34 -0700, rlkling wrote:

> Or, asking another way, are there any python libraries that display images
> to 10 bit monitors as 10 bit images, and not scaled to 8 bit?

This should be possible using PyOpenGL and GLUT, with:

	glutInitDisplayString("red=10 green=10 blue=10")

That's based upon a quick look at:

	http://www.amd.com/us/Documents/10-Bit.pdf
	http://www.nvidia.com/docs/IO/40049/TB-04701-001_v02_new.pdf

I don't have a 30-bpp monitor to test it with.

You may be able to do the same thing using e.g. QGLWidget or wxGLCanvas,
but I don't think that you can get 30-bpp with GDI, so you're limited to
solutions involving OpenGL (or DirectX, if you can figure out the
necessary pieces).

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web