X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Dec 2012 12:00 PM by  anon
exporting tiff to Matlab _full image works but subimage does not
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
27 Dec 2012 12:00 PM
    Hi I am working with remotes sensing images Landsat 6693x7974 pixels, when I save them as .tiff in envi and read them into matlab it is all fine but when I save a subset of them, using "file" option, the images look ok in the windows directory preview but matlab reads them wrong. Less spectral resolution basically, and lower values (instead of 200 maximum value, it gives 30). Why is that? the class of imported files is always uint8. Then when I reopen the same subset images in envi they are opened as color images, three channels instead of just a single gray level image, which is what I want. can somebody give me a clue? In Matlab help I read "If a file contains CIELAB color data, imread converts it to ICCLAB before bringing it into the MATLAB workspace because 8- or 16-bit TIFF CIELAB-encoded values use a mixture of signed and unsigned data types that cannot be represented as a single MATLAB array." does it have to do with the problem?

    Deleted User



    New Member


    Posts:
    New Member


    --
    28 Dec 2012 08:13 AM
    Are you saving the subset using the ENVI image window File menu? If so that is different than using the main menu File > Save file as... The following article explains this: What is the difference between the "Save Image As" and "Save File As" tools in ENVI Classic? http://www.exelisvis.com/.../ArticleId/3330.aspx What version of ENVI are you using?
    You are not authorized to post a reply.