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

Home » Public Forums » archive » Re: inverting a binary image(array)?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: inverting a binary image(array)? [message #78285 is a reply to message #78284] Sun, 06 November 2011 07:24 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Nov 4, 3:54 pm, desertdryad <dry...@gmail.com> wrote:
> What's the most streamlined way to do this?

In the ENVI environment, you might consider writing a simple band math
user function.

Look for the "Band and Spectral" math section of the ENVI Programmer's
Guide in the online help.

You'll then have a function you can reuse in other contexts within
ENVI.

ENVI will tile the data as necessary so if the image is very large you
won't exhaust memory.

For extra points, use the TEMPORARY function and use the same data
type as the input band to prevent upcasting and unnecessary data
copying, (e.g., for byte data: RETURN, 1B - TEMPORARY(b1), for
unsigned short data: RETURN, 1US - TEMPORARY(b1)).

Social media alert: I work for Exelis VIS, but any implied or
expressed opinions are my own.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 8.1, X11 and Crashes
Next Topic: Re: Overlaying multiple plots on top of map

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

Current Time: Fri Oct 10 04:11:55 PDT 2025

Total time taken to generate the page: 0.08423 seconds