X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Jun 2012 04:22 PM by  anon
change colours in EnviRaster class file
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Jun 2012 04:22 PM
    I want to modify the colours of an EnviRaster created by a k-means clustering within IDL. I've noticed that the ENVIRasterMetaData within the classified image contains 'CLASS LOOKUP' and 'PALETTE_0' tags which contain byte arrays of [r,g,b] elements for each class. My problem is that when I try to modify the data stored in 'CLASS LOOKUP' and 'PALETTE_0' using ENVIRasterMetaData.updateItem, the byte array data is stored as a 1-d array of strings. e.g. byteArray = meta['PALETTE_0'] help, byteArray BYTE = Array[3, 101] ; Do something to change byte array here ... meta.updateItem, 'PALETTE_0', byteArray help, meta['PALETTE_0'] STRING = Array[303] Is there a way to change the colours of an ENVIRaster class file programmatically? Or is there a way to make my own EnviRaster class file according to my specifications (e.g. classes, colours, data)?

    Deleted User



    New Member


    Posts:
    New Member


    --
    25 Jun 2012 01:56 PM
    Hi Peter, You might want to post this to Exelis VIS tech support since the behaviour isn't what should be expected. They may have more feedback on what you are running into. Make sure that you let them know this is in the new ENVI 5 programming environment and not IDL related.
    You are not authorized to post a reply.