Jump to content
PDS Geosciences Node Community
Sign in to follow this  
martin

Matlab .img files

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thank you very much,I'm looking into the commands you mentioned.

 

thanks again ,

 

Martin

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...