Re: ENVI Classification File [message #79083] |
Fri, 27 January 2012 03:35 |
Steffen Reich
Messages: 8 Registered: October 2011
|
Junior Member |
|
|
Am 26.01.2012 15:33, schrieb Brian J. Daniel:
> On Jan 26, 7:17 am, Steffen Reich<shogo...@web.de> wrote:
>> Hello,
>>
>> I meet a a problem, that I didn't expected. I have a classified image in
>> the ENVI Classification file format. If I want to read this file with
>> the ENVI_GET_Data command the whole data is read in the ENVI standard
>> format and the whole rgb values of the classification aren`t transfered.
>> Do you have any hints how I can solve this problem?
>>
>> Greetings
>> Steffen
>
> First, confirm your ENVI Classification file is indeed what you think
> it is by looking in the header file. Then, use ENVI_FILE_QUERY to
> retrieve LOOKUP and CLASS_NAMES. LOOKUP provides a [3,num_classes]
> array of color triplets for each class. You can then apply that by
> loading it into the color table to display the data from
> ENVI_GET_DATA.
>
> -B
Thank you for your answer,that solved my problem. Next time I should
read the api more carefully.
|
|
|
|
Re: ENVI Classification File [message #79101 is a reply to message #79084] |
Thu, 26 January 2012 06:33  |
Brian Daniel
Messages: 80 Registered: July 2009
|
Member |
|
|
On Jan 26, 7:17 am, Steffen Reich <shogo...@web.de> wrote:
> Hello,
>
> I meet a a problem, that I didn't expected. I have a classified image in
> the ENVI Classification file format. If I want to read this file with
> the ENVI_GET_Data command the whole data is read in the ENVI standard
> format and the whole rgb values of the classification aren`t transfered.
> Do you have any hints how I can solve this problem?
>
> Greetings
> Steffen
First, confirm your ENVI Classification file is indeed what you think
it is by looking in the header file. Then, use ENVI_FILE_QUERY to
retrieve LOOKUP and CLASS_NAMES. LOOKUP provides a [3,num_classes]
array of color triplets for each class. You can then apply that by
loading it into the color table to display the data from
ENVI_GET_DATA.
-B
|
|
|