ccount

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
{{DavinciWiki_Function}}
+
{{DavinciWiki_Function|
[[category:C_Programs]]
+
The ccount() function is used to count the number of pixels in a cluster overlay that have a value above the specified threshold.
 +
|
 +
Arguments: any numeric array and a threshold value
 +
 +
Return Value: a 3x1x1 float array
 +
|
 +
Syntax: ccount(object, threshold, ignore)
 +
 +
Ccount() returns a 3x1x1 array of FLOAT values representing:
 +
#The ratio of the next two values,
 +
#The number of pixels in the overlay with a value above threshold,
 +
#The total number of pixels in the image with a value above ignore.
 +
|
 +
  dv> a
 +
  100x100x1 array of float, bsq format [40,000 bytes]
 +
 +
  dv> ccount(a,10)
 +
  3x1x1 array of float, bsq format [12 bytes]
 +
  0.914009        8971.00        9815.00
 +
|
 +
|
 +
|
 +
*[[cluster]]
 +
|
 +
|
 +
}}
 +
[[category:Davinci Core]]
 
[[category:Functions]]
 
[[category:Functions]]

Revision as of 17:53, 20 February 2006



Description

The ccount() function is used to count the number of pixels in a cluster overlay that have a value above the specified threshold.

Arguments and Return Values

Arguments: any numeric array and a threshold value

Return Value: a 3x1x1 float array

Usage

Syntax: ccount(object, threshold, ignore)

Ccount() returns a 3x1x1 array of FLOAT values representing:

  1. The ratio of the next two values,
  2. The number of pixels in the overlay with a value above threshold,
  3. The total number of pixels in the image with a value above ignore.

Examples

 dv> a
 100x100x1 array of float, bsq format [40,000 bytes]

 dv> ccount(a,10)
 3x1x1 array of float, bsq format [12 bytes]
 0.914009        8971.00        9815.00

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-23-2006

Personal tools