cleandcs

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
m (Removed 1.69 Version)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{DavinciWiki_Function|
 
{{DavinciWiki_Function|
Removes unwanted saturated pixels in dcs images
+
Removes unwanted saturated pixels in dcs images.
 
|
 
|
 
Arguments: a byte color image and an option for level of cleanup.
 
Arguments: a byte color image and an option for level of cleanup.
Line 6: Line 6:
 
Return Value: a byte color image with certain saturated pixels blacked-out.
 
Return Value: a byte color image with certain saturated pixels blacked-out.
 
|
 
|
Syntax: cleandcs(image, opt)
+
[[Syntax]]: cleandcs(image [, opt = INT])
 
   
 
   
 
'image'  a byte color picture resulting from a dcs operation
 
'image'  a byte color picture resulting from a dcs operation
 +
 
'opt'    option for level of cleaning. Default = 2
 
'opt'    option for level of cleaning. Default = 2
 +
 
opt=1 removes all pixels with 255 in one band and 0 in others
 
opt=1 removes all pixels with 255 in one band and 0 in others
opt=2 removes all pixels with 255 in two bands and 0 in other
+
 +
opt=2 removes all pixels with 255 in two bands
 
|
 
|
 
   dv> b
 
   dv> b
Line 25: Line 28:
 
|
 
|
 
|
 
|
 +
*[[dcs]]
 +
*[[do_dcs]]
 +
|
 +
*image_stretch.dvrc
 
|
 
|
 
|
 
|
 
}}
 
}}
[[category:Scripts]]
 
 
[[category:Functions]]
 
[[category:Functions]]
 +
[[category:User Defined Functions]]
 
[[category:Image Stretching]]
 
[[category:Image Stretching]]

Latest revision as of 15:56, 17 January 2008


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