Showing results for 
Search instead for 
Do you mean 

Drop Edges from Image

by on ‎04-29-2016 12:20 PM - edited on ‎02-24-2020 02:01 AM by Community Manager (934 Views)

Download model


Trims edges from an image. Enter number of pixel rows/columns to trim from image. You can use the Preview function to tweak the trim level setting to your needs. This is useful for cutting off rough or skewed edges or otherwise if you need a rectangular image. 

One limitation of this Model is that the rows and columns aren't physically trimmed from the file - the output image still has the same number of rows and columns as the input file, but the specified number of edge rows and columns have been set to  have a pixel value of 0 in the output. In ERDAS IMAGINE 2016 we will be able to use the Define Processing Area operator to physically trim edge rows/columns (and a new Article will be posted with that Model).



image2015-12-17 16 6 46.png   

Input parameters:

Raster Input File: enter the filename of raster to trim

Set Trim Level: enter the number of pixel rows/columns you wish to trim from the image

Trimmed Raster Output File: enter the filename of the new raster

image2015-12-23 14 40 47.png