Name
hamming_distance_normhamming_distance_normHammingDistanceNormhamming_distance_normHammingDistanceNormHammingDistanceNorm — Hamming distance between two regions using normalization.
Herror hamming_distance_norm(Hobject Regions1, Hobject Regions2, const HTuple& Norm, Hlong* Distance, double* Similarity)
Herror hamming_distance_norm(Hobject Regions1, Hobject Regions2, const HTuple& Norm, HTuple* Distance, HTuple* Similarity)
Hlong HRegion::HammingDistanceNorm(const HRegion& Regions2, const HTuple& Norm, double* Similarity) const
HTuple HRegionArray::HammingDistanceNorm(const HRegionArray& Regions2, const HTuple& Norm, HTuple* Similarity) const
void HammingDistanceNorm(const HObject& Regions1, const HObject& Regions2, const HTuple& Norm, HTuple* Distance, HTuple* Similarity)
HTuple HRegion::HammingDistanceNorm(const HRegion& Regions2, const HTuple& Norm, HTuple* Similarity) const
Hlong HRegion::HammingDistanceNorm(const HRegion& Regions2, const HString& Norm, double* Similarity) const
Hlong HRegion::HammingDistanceNorm(const HRegion& Regions2, const char* Norm, double* Similarity) const
The operator hamming_distance_normhamming_distance_normHammingDistanceNormhamming_distance_normHammingDistanceNormHammingDistanceNorm returns the hamming distance
between two regions,
i.e., the number of pixels of the regions which are different
(DistanceDistanceDistanceDistanceDistancedistance).
Before calculating the difference the region in
Regions1Regions1Regions1Regions1Regions1regions1 is normalized onto
the regions in Regions2Regions2Regions2Regions2Regions2regions2.
The result is the number of pixels contained in one region
but not in the other:
The parameter SimilaritySimilaritySimilaritySimilaritySimilaritysimilarity describes the similarity between the
two regions based on the hamming distance DistanceDistanceDistanceDistanceDistancedistance:
The following types of normalization are available:
- 'center'"center""center""center""center""center":
The region is moved so that both regions have the save center
of gravity.
If both regions are empty SimilaritySimilaritySimilaritySimilaritySimilaritysimilarity is set to 0.
The regions with the same index from both input parameters are
always compared.
In both input parameters the same number of
regions must be passed.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
Type of normalization.
Default value:
'center'
"center"
"center"
"center"
"center"
"center"
List of values: 'center'"center""center""center""center""center"
Hamming distance of two regions.
Assertion: Distance >= 0
Similarity of two regions.
Assertion: 0 <= Similarity && Similarity <= 1
If F is the area of a region the mean runtime
complexity is O(sqrt(F)).
hamming_distance_norm returns the value 2 (H_MSG_TRUE) if the number of objects in
both parameters is the same and is not 0.
The behavior in case of empty input (no input objects available) is
set via the operator set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>).
The behavior in case of empty region (the region is the empty set) is set via
set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>).
If necessary an exception is raised.
thresholdthresholdThresholdthresholdThresholdThreshold,
regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing,
connectionconnectionConnectionconnectionConnectionConnection
intersectionintersectionIntersectionintersectionIntersectionIntersection,
complementcomplementComplementcomplementComplementComplement,
area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter
hamming_change_regionhamming_change_regionHammingChangeRegionhamming_change_regionHammingChangeRegionHammingChangeRegion
Foundation