Home »
Public Forums »
archive »
Re: HELP: How to read 10-bit image file
Re: HELP: How to read 10-bit image file [message #23643] |
Wed, 07 February 2001 09:25 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Sang-Heon Shim <sangshim@princeton.edu> writes:
> Dear Expert,
> I would like to know how to read 10-bit image file using IDL. Thanks
> in advance.
I am afraid you haven't provided enough information about what you
want to do. There are lots of routines in the IDL library for reading
images in standard formats. If you are reading some kind of raw
format then you will need to find out how it was written and write
your own program.
If your 10-bit data is packed then you will need to use ISHFT.
Luckily you can use the fact that every five bytes has four data
values (hence you should convert a quad at a time). If the data are
unpacked (ie, aligned on 16 bit boundaries) it may be quite easy to
read.
Good luck,
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Current Time: Wed Oct 08 19:41:49 PDT 2025
Total time taken to generate the page: 0.00532 seconds