cleandcs

From DavinciWiki
Jump to: navigation, search

Description

Removes unwanted saturated pixels in dcs images.

Arguments and Return Values

Arguments: a byte color image and an option for level of cleanup.

Return Value: a byte color image with certain saturated pixels blacked-out.

Usage

Syntax: cleandcs(image [, opt = INT])

'image' a byte color picture resulting from a dcs operation

'opt' option for level of cleaning. Default = 2

opt=1 removes all pixels with 255 in one band and 0 in others

opt=2 removes all pixels with 255 in two bands

Examples

 dv> b
 345x500x3 array of byte, bip format [517,500 bytes]

 dv> c=cleandcs(b,1)
 345x500x3 array of byte, bip format [517,500 bytes]

 dv> d=cleandcs(b,2)
 345x500x3 array of byte, bip format [517,500 bytes]

Images

clndcs1.png clndcs2.png clndcs3.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Library Changes

Created On: 02-15-2006
Modified On: 01-17-2008

Personal tools