[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Re: Clipping of an image
Teo,
Use the CLIP command in EASI v10. and up.
If you have an older version of EASI, you can write your own routine using
combinations of easi commands such as FEXPORT, CIMPRO, IIA, GRDPOL, THR,
REGPRO, and MAP or MODEL. For example, you could FEXPORT your clipping
vector to a new pix file, create a clip file with CIMPRO to the extents of
your clip vector, IIA the vector into this file, use GRDPOL to burn the
clipping vector to a channel, THR to create a bitmap outside the burnt area,
REGPRO to resample you input into the clip file and MAP or MODEL to clear
outside data to your desired value.
This will subset your image based on the clipping vector and change DN
values outside the clip polygon to a user defined one.
As the proverbial saying goes, there are many ways to skin a cat.
Karl
-----Original Message-----
From: Teodosio Lacava [mailto:lacava@xxxxxxxxxxx]
Sent: Friday, October 17, 2008 3:13 AM
To: discuss@xxxxxxxxxxxxxxxx
Cc: discuss@xxxxxxxxxxxxxxxx
Subject: R: Re: Clipping of an image
Thanks for your help,
but I'm able to clip an image using pci commands (by focus or imageworks), I
need to do it by command-line.
Regards
Teo Lacava
----- Messaggio originale -----
Da: "Dr. D.V.K. Nageswara Rao" <dvknrao@xxxxxxxxx>
A: discuss@xxxxxxxxxxxxxxxx
Inviato: Giovedì, 16 ottobre 2008 12:40:46 GMT +01:00
Amsterdam/Berlino/Berna/Roma/Stoccolma/Vienna
Oggetto: Re: Clipping of an image
You open both the layers first and select (highlight) raster to be clipped.
you select the clip layer (which is a file of a vector in .pix format).
Give a name to the output and ok it. Its done
On 10/13/08, Teodosio Lacava <lacava@xxxxxxxxxxx> wrote:
>
> Dear all,
> I'm not able to do (automatically, by means of an easi script) the
> clipping of an image, using as clipping layer a vector stored in a
> *.pix file.
> How can I overcome this?
> Thanks in advance for your suggestions.
> Regards,
>
> Teo Lacava
> IMAA-CNR
>
--
Dr. D.V.K. Nageswara Rao
Senior Scientist (Soil Sci.)
Crop Production Division
Indian Grassland and Fodder Res. Inst. Jhansi - 284 003, India Phone #
(work): 91-510-2730446; (Home): 91-510-2730121
Mobile: 09415909612
Alternate email: dvknrao@xxxxxxxxxx
Website: www.dvknageswararao.bravehost.com