clip

From DavinciWiki
Jump to: navigation, search

Description

Removes black space or null values and makes the image the smallest possible size that contains all valid data points.

Arguments and Return Values

Arguments: Data array and the value of the black/null space

Return Value: Data array of the smallest size possible that contains all valid data points.

Usage

Syntax: clip(data,ignore [,anc=BOOL]) where:

data is any type of data array

ignore is the value of the black/null space

anc - return the ancillary clipping data

NOTE: it currently only operates properly on single band data.

Examples

a is a data array with valid points in the center and black/null values of 0.

dv> a
500x500x1 array of byte, bsq format [250,000 bytes]

dv> b=clip(a,0)
300x300x1 array of byte, bsq format [90,000 bytes]

Images

clip1.png clip2.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 04-05-2006
Modified On: 10-08-2014

Personal tools