PANDORE Version 6 | GREYC-IMAGE |
pregionenergy measures the energy value of the regions inside the region map rg_in. Each region energy value is stored as a float in the array named name inside the collection col_out. The ith item in the array corresponds to the i+1th region because the region 0 is not considered.
Energy is measure as follows:
energy = SUM { im_in[p] * im_in[p]} / N
Returns SUCCESS or FAILURE.
Displays energy of the regions yielded by a simple binarization of tangram.pan:
pbinarization 100 1e30 tangram.pan a.pan plabeling 8 a.pan b.pan pregionenergy energy b.pan tangram.pan c.pan pcol2txt c.pan
Calcul de l'énergie des régions.
Author: Alexandre Duret-Lutz