NAME

linhisto -- create unit to ..

PROTOTYPE

unitptr linhisto(int xdim, int ydim, int histooutdim, int deepmax, int startpointmode, int dimmode, unitptr uHost)

ARGUMENTS

int xdim
- not documented in source --
int ydim
- not documented in source --
int histooutdim
- not documented in source --
int deepmax
- not documented in source --
int startpointmode
- not documented in source --
int dimmode
- not documented in source --
unitptr uHost
host unit

RETURN VALUE:

A pointer to the created unit or NULL in the case of an error.

INTERFACE OF CREATED UNIT:

X_in[]:
Segmented Image
Y_in[]:
threshold
X_out[]:
Binariesed output
Y_out[]:
clustered binariesed output
Z_out[]:
clustered original
out_3[]:
histogram values
out_4
gravity point of cluster
out_5
outer point
out_6
number of pixels in cluster

EXECUTION OF CREATED UNIT:

INITIALIZATION:

DESCRIPTION:

This Unit computes a 1-dim histogramm of an object. From a segmented image, with black / 0 as background, a cluster at the starting position is extracted. With a threshold the image is binariesed, on this image a backtracking function extracts the cluster. The outer point with maximum distance to the cluster center is extracted. Then the point in the cluster with maximum to the outer point is used to project the cluster points on the connecting vector. A normed histogram, indepedend from rotation and number of pixels in the cluster, is computed to get the derivation length the maximum orientation of the object.

CONTROL MODES:


    threshold to binaries and define the foreground

EXAMPLES:

STATUS:

Preliminary.

SEE ALSO:

FILE

nst_linhisto.c