PANDORE Version 6 |
GREYC-IMAGE |
penergyselection
Selects regions from energy value.
Synopsis
penergyselection relation threshold [-m mask] [rg_in|-] [im_in|-][rg_out|-]
Description
penergyselection selects regions from their energy value.
The parameter relation specifies the order relation to
the threshold value that is used to select or not a region.
Energy is measure as follows:
energy = SUM { im_in[p] * im_in[p]} / N
Parameters
- relation is an integer from [-3,3] which specifies
the order relation to the threshold value:
- relation = 3: regions with the maximum value.
- relation = 2: regions >= threshold.
- relation = 1: regions > threshold.
- relation = 0: regions = threshold.
- relation = -1: regions < threshold.
- relation = -2: regions <= threshold.
- relation = -3: regions with the minimum value.
- threshold is a float value.
Inputs
- rg_in: a region map.
- im_in: a grayscale image.
Outputs
Result
Returns the number of selected regions.
Examples
Selects regions with the highest energy:
penergyselection 3 0 rin.pan a.pan rout.pan
See also
Region
C++ prototype
Errc PEnergySelection(const Reg2d &rg_in, Img2duc &im_in, Reg2d &rg_out, int relation, float threshold );
Version française
Sélection de régions sur leur valeur d'énergie intérieure.
Author: Régis Clouard