Difference between revisions of "Histograms 333"

From ElphelWiki
Jump to: navigation, search
 
(pnghist.cgi parameters)
Line 7: Line 7:
 
  http://<camera_ip>/pnghist.cgi?sqrt=0&scale=10&average=10
 
  http://<camera_ip>/pnghist.cgi?sqrt=0&scale=10&average=10
 
== pnghist.cgi parameters ==
 
== pnghist.cgi parameters ==
 +
'''Bold'' are the default values
 
  height -  image height, maximal is '''256''' pixels (width is always 256)
 
  height -  image height, maximal is '''256''' pixels (width is always 256)
 
  draw -    draw mode (0..'''2'''): 0 - dots, 1 - vertical bars, 2 - connected dots
 
  draw -    draw mode (0..'''2'''): 0 - dots, 1 - vertical bars, 2 - connected dots

Revision as of 00:43, 11 January 2006

Histograms in 333 camera

It is now (starting with 6.4.22 software) possible to get images with histograms from the 333 cameras.

http://<camera_ip>/histogram.cgi

returns GIF image with 4 histograms - for integral intensity (white) and fro individual colors (RGB)

http://<camera_ip>/pnghist.cgi

returns PNG images and can be configured with additional parameters, such as

http://<camera_ip>/pnghist.cgi?sqrt=0&scale=10&average=10

pnghist.cgi parameters

'Bold are the default values

height -   image height, maximal is 256 pixels (width is always 256)
draw -     draw mode (0..2): 0 - dots, 1 - vertical bars, 2 - connected dots
fillz -    (0/1), fill zeros - fill gaps of zeros (happens in high contras areas where each sensor count (1 of 1024) corresponds to several output counts. 
linterpz - (0/1), linear interpolation for the filled gaps of zeros. Automatically turns on fillz (above)
sqrt     - (0/1), calcualtes square root fro each histogram value. Relatively increases small values.
colors   - (0..57..63). Bit-mask that controls display of individual and composite components:
1 - red, 2 - Green1 (in red rows), 4 - green 2 (in blue rows), 8 - blue, 16 - white, 32 - both greens combined. So 1+8+32=40 will display R,G and B
rav  -     (0...) - running average, averages specified number of pixels to make histograms smooth.
dscale -   (..3.0...) - specifies what fraction of the total height would the histogram occupy iof all the values were the same. The higher the value, the lower the histogram will be displayed