martin Posted May 30, 2013 Share Posted May 30, 2013 Hello, I've been reading the other posts related to opening .img data and I was specifically interested in opening pancam EDR images in matlab .I was wondering if you knew of any method to do so or if you could point me towards any literature on such a subject.I've read the docs on the analyst notebook page titled Camera Experiment Data Record (EDR) and Reduced Data Record (RDR) Operations and Science Data Products and the SCIENCE EXPERIMENT DATA RECORD (EDR) ARCHIVE VOLUME SOFTWARE INTERFACE SPECIFICATION (SIS) and have an idea of the structure of the .img files and the pds headers but i'm not too sure on how to access the binary image data. Thank you very much! Link to comment Share on other sites More sharing options...
June Wang Posted May 31, 2013 Share Posted May 31, 2013 In matlab, you may try the fseek and fread command to read the binary image data. image size = rows * cols * bands; image_start_position = (image pointers records - 1) * RECORD_BYTES; If you find the "SAMPLE_BITS = 16" in the image header, the final pixel value = value from the high 8 bit * 256 + value from the low 8 bit; Please shoot me a e-mail if you have more concerns. Thanks, June Wang@wunder.wustl.edu Link to comment Share on other sites More sharing options...
martin Posted June 1, 2013 Author Share Posted June 1, 2013 Thank you very much,I'm looking into the commands you mentioned. thanks again , Martin Link to comment Share on other sites More sharing options...
agc5 Posted June 23, 2020 Share Posted June 23, 2020 Hello, I'm working with GDR IMG file types in MATLAB. Do you have more concrete examples of how to produce the final pixel value? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now