- Timestamp:
- Jun 15, 2010, 1:12:26 PM (16 years ago)
- Location:
- branches/czw_branch/20100519
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20100519
- Property svn:mergeinfo changed
/trunk merged: 28308-28311,28313,28317,28319-28332,28335-28337
- Property svn:mergeinfo changed
-
branches/czw_branch/20100519/Ohana
- Property svn:mergeinfo changed
/trunk/Ohana merged: 28317,28324-28331,28335-28337
- Property svn:mergeinfo changed
-
branches/czw_branch/20100519/Ohana/src/opihi/cmd.data/help/histogram
r4688 r28338 1 1 2 histogram < buffer> <x> <y> [-region sx sy nx ny] [-range min max]2 histogram <invec> <outvec> <start> <end> [<delta>] [-range <dx_outvec>] 3 3 4 calculate a histogram of the image pixel values in the given 5 buffer, optionally constrained to the given region, with optional 6 max and min values. the results are placed in the vectors x and y, 7 which contain the pixel values and the number of occurences. 4 calculate a histogram of the <invec> values and store the 5 occurrences count in the <outvec> buffer. Optionally constrained to 6 the given <start>-<end> region with <delta> step value (default 7 step is 1). The optional '-range <dx_outvec>' parameter allows storing 8 the range <start>-<end> values with <delta> increment 8 9 10 Sample code usage: 11 12 # create a vector ('x') containing arbitrary values [0.:1.] range 13 create y 0 100 1; set x = sin(y) 14 15 # build histogram from x from 0. to 1. with 0.1 delta step 16 histogram x xhist 0. 1. .1 -range dx 17 18 # plot corresponding histogram 19 limits dx xhist; clear; box; plot dx xhist -x 1
Note:
See TracChangeset
for help on using the changeset viewer.
