Mode TAG: Histogram Peak

 

In this mode, you create segmented TAG images from the GLI Images (Grey Level Images).

 

The segmentation is done by a simple grey level thresholding on the GLI images.  The program will attempt to detect Gaussian peaks in the histogram.  You can then assign TAG threshold to these peaks.

 

 

From the Graphic Interface

 

          

 

Histogram From

By default the histogram is compute from the grey level value of all the pixels of the selected frames.  But with this tool, you can restrict the pixels used to compute the histogram to the pixels under one of the existing TAG values in the image.

 

Recompute Histogram

If you modify the value of the preceding tool ("Compute Histogram from", you need to re-compute the histogram to make these actualize these changes.

 

Histogram box

Display the histogram of the grey values of the GLI image(s). The vertical axis represents the number of pixels having a particular value, while the horizontal axis represents the possible values of the pixels (from Minimum at left to Maximum at right). The colors under the line correspond to the segmentation values fixed by the sliders. When the cursor is over an image, the GLI value of the pixel under the cursor can be seen as a vertical bar on the histogram. This tool is also described in the "Interface tools" section of the introduction

 

TAG Value

Select the current Tag value. This tool is also described in the "Interface tools" section of the introduction

 

Segmentation Mode

For each TAG value, you can select one of 3 segmentation modes:

Off:          The TAG is not used in the segmentation

Manual:          You manually select the lower and higher threshold values for this TAG

Auto:          The threshold values will be centred on one of the histogram peak.  the width of the threshold window will be compute from the width of the peak at half it's height.  The interface enable you to select the desired peak, and a factor used in computing the width of the threshold window. 

 

Preview

Toggle the preview mode. When on, the indicator on the button light up and the TAG displayed in the 2D windows will reflect the threshold selection.

 

Compute

Pressing the Compute button will perform the real segmentation and create the TAG  images.

 

 

 

From the Display Area

 

There is no Display Area interaction specific to this tool.

 

 

From the Keyboard

 

In addition to the keyboard shortcuts seen in section 5.2.0.3, the following keyboard keys , Specific to Thresholding,  can also be used as a shortcut:

 

 



 

Key map

Action (While the cursor is over one of the Threshold sliders)

 



 

"Scroll Lock"

Lock or Unlock the slider under the cursor.

 

Up Arrow"

Decrease the TAG value associated with the slider under the cursor

 

Down Arrow

Decrease the TAG value associated with the slider under the cursor

 

 

From the Command Line

 

 

Commands recognized in this module:

 

Histo: Compute

Compute the segmentation.

 

Histo: t_tag Mode (Off|Manual|Auto)

This will set the mode for all TAGs matching "t_tag".

 

Histo: t_tag Min value

This will set the lower threshold values for all TAGs matching "t_tag" if these TAGs are in mode manual.

 

Histo: t_tag Max value

This will set the lower threshold values for all TAGs matching "t_tag" if these TAGs are in mode manual.

 

Histo: t_tag Peak value

This will assign the peak "value" to all TAGs matching "t_tag" if these TAGs are in mode Auto.

 

Histo: t_tag Width value

This will assign the width "value" to all TAGs matching "t_tag" if these TAGs are in mode Auto.

 

Histo: t_tag Slider (*|min|max) (lock|unlock|toggle)

Lock or unlock the sliders for the lower and higher thresholds of the TAGs matching "t_tag"

 

 

Templates:

 

t_tag is a template for the TAG values.  It match either the TAG ID ("0" to "256") or the TAG label or "cur" for the current TAG value.