comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ENVI Classification File
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ENVI Classification File [message #79083] Fri, 27 January 2012 03:35
Steffen Reich is currently offline  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 #79084 is a reply to message #79083] Fri, 27 January 2012 03:30 Go to previous message
Steffen Reich is currently offline  Steffen Reich
Messages: 8
Registered: October 2011
Junior Member
Ok sometimes I don't to see the wood for the trees. Problem solved.
Re: ENVI Classification File [message #79101 is a reply to message #79084] Thu, 26 January 2012 06:33 Go to previous message
Brian Daniel is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: list trouble
Next Topic: Re: list trouble

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:35:07 PDT 2025

Total time taken to generate the page: 0.00755 seconds