_convert_Haar(self,
lc,
patch_len,
c,
is_improver,
to_reset,
reset_value=0)
| source code
|
Convert from THaarClassifier to a new classifier with scale s so
that I can detect from image with different scales.
- Input:
- lc: a THaarClassifier
patch_len: the length of the patch to be used by lc
c: the voting weight (double)
is_improver: (boolean) an improver or a filter?
to_reset: (boolean) to reset previous sum?
reset_value: (double) value to be reset to
- Output:
all the parameters of the haar classifier will be stored in an int
array and a double array
New reference:
- ivec: 64 items, format as follows
-
- dvec: 4 items, format as follows
- dvec[0]: threshold b
- dvec[1]: voting weight c
- dvec[2]: reset value -- only meaningful if bit 1 of ivec[1] is set
Old reference:
- ivec: format as follows
-
- dvec: format as follows
- first 32 doubles: weights
- dvec[32]: threshold b
- dvec[33]: voting weight c
- dvec[34]: reset value -- only meaningful if bit 1 of ivec[33] is set
|