Home | History | Annotate | Download | only in b_BitFeatureEm

Lines Matching refs:ptrA

42 						    struct bbf_ScanDetector* ptrA )
46 ptrA->minScaleE = 0;
47 ptrA->maxScaleE = 0;
48 ptrA->maxImageWidthE = 0;
49 ptrA->maxImageHeightE = 0;
50 bbf_Scanner_init( cpA, &ptrA->scannerE );
52 ptrA->patchWidthE = 0;
53 ptrA->patchHeightE = 0;
54 ptrA->minDefScaleE = 0;
55 ptrA->maxDefScaleE = 0;
56 ptrA->scaleStepE = 0;
57 ptrA->overlapThrE = 0;
58 ptrA->borderWidthE = 0;
59 ptrA->borderHeightE = 0;
60 ptrA->featuresE = 0;
61 for( iL = 0; iL < bbf_SCAN_DETECTOR_MAX_FEATURES; iL++ ) bbf_BitParam_init( cpA, &ptrA->bitParamArrE[ iL ] );
62 for( iL = 0; iL < bbf_SCAN_DETECTOR_MAX_FEATURES; iL++ ) bbf_Sequence_init( cpA, &ptrA->featureArrE[ iL ] );
63 bts_IdCluster2D_init( cpA, &ptrA->refClusterE );
64 ptrA->refDistanceE = 10;
70 struct bbf_ScanDetector* ptrA )
74 ptrA->minScaleE = 0;
75 ptrA->maxScaleE = 0;
76 ptrA->maxImageWidthE = 0;
77 ptrA->maxImageHeightE = 0;
78 bbf_Scanner_exit( cpA, &ptrA->scannerE );
80 ptrA->patchWidthE = 0;
81 ptrA->patchHeightE = 0;
82 ptrA->minDefScaleE = 0;
83 ptrA->maxDefScaleE = 0;
84 ptrA->scaleStepE = 0;
85 ptrA->overlapThrE = 0;
86 ptrA->borderWidthE = 0;
87 ptrA->borderHeightE = 0;
88 ptrA->featuresE = 0;
89 for( iL = 0; iL < bbf_SCAN_DETECTOR_MAX_FEATURES; iL++ ) bbf_BitParam_exit( cpA, &ptrA->bitParamArrE[ iL ] );
90 for( iL = 0; iL < bbf_SCAN_DETECTOR_MAX_FEATURES; iL++ ) bbf_Sequence_exit( cpA, &ptrA->featureArrE[ iL ] );
91 bts_IdCluster2D_exit( cpA, &ptrA->refClusterE );
92 ptrA->refDistanceE = 0;
106 struct bbf_ScanDetector* ptrA,
115 const struct bbf_ScanDetector* ptrA,
149 const struct bbf_ScanDetector* ptrA )
155 memSizeL += bbs_SIZEOF16( ptrA->patchWidthE );
156 memSizeL += bbs_SIZEOF16( ptrA->patchHeightE );
157 memSizeL += bbs_SIZEOF16( ptrA->minDefScaleE );
158 memSizeL += bbs_SIZEOF16( ptrA->maxDefScaleE );
159 memSizeL += bbs_SIZEOF16( ptrA->scaleStepE );
160 memSizeL += bbs_SIZEOF16( ptrA->overlapThrE );
161 memSizeL += bbs_SIZEOF16( ptrA->borderWidthE );
162 memSizeL += bbs_SIZEOF16( ptrA->borderHeightE );
163 memSizeL += bbs_SIZEOF16( ptrA->featuresE );
164 for( iL = 0; iL < ptrA->featuresE; iL++ ) memSizeL += bbf_BitParam_memSize( cpA, &ptrA->bitParamArrE[ iL ] );
165 for( iL = 0; iL < ptrA->featuresE; iL++ ) memSizeL += bbf_Sequence_memSize( cpA, &ptrA->featureArrE[ iL ] );
166 memSizeL += bts_IdCluster2D_memSize( cpA, &ptrA->refClusterE );
167 memSizeL += bbs_SIZEOF16( ptrA->refDistanceE );
175 const struct bbf_ScanDetector* ptrA,
179 uint32 memSizeL = bbf_ScanDetector_memSize( cpA, ptrA );
183 memPtrA += bbs_memWrite32( &ptrA->patchWidthE, memPtrA );
184 memPtrA += bbs_memWrite32( &ptrA->patchHeightE, memPtrA );
185 memPtrA += bbs_memWrite32( &ptrA->minDefScaleE, memPtrA );
186 memPtrA += bbs_memWrite32( &ptrA->maxDefScaleE, memPtrA );
187 memPtrA += bbs_memWrite32( &ptrA->scaleStepE, memPtrA );
188 memPtrA += bbs_memWrite32( &ptrA->overlapThrE, memPtrA );
189 memPtrA += bbs_memWrite32( &ptrA->borderWidthE, memPtrA );
190 memPtrA += bbs_memWrite32( &ptrA->borderHeightE, memPtrA );
191 memPtrA += bbs_memWrite32( &ptrA->featuresE, memPtrA );
192 for( iL = 0; iL < ptrA->featuresE; iL++ ) memPtrA += bbf_BitParam_memWrite( cpA, &ptrA->bitParamArrE[ iL ], memPtrA );
193 for( iL = 0; iL < ptrA->featuresE; iL++ ) memPtrA += bbf_Sequence_memWrite( cpA, &ptrA->featureArrE[ iL ], memPtrA );
194 memPtrA += bts_IdCluster2D_memWrite( cpA, &ptrA->refClusterE, memPtrA );
195 memPtrA += bbs_memWrite32( &ptrA->refDistanceE, memPtrA );
203 struct bbf_ScanDetector* ptrA,
221 memPtrA += bbs_memRead32( &ptrA->patchWidthE, memPtrA );
222 memPtrA += bbs_memRead32( &ptrA->patchHeightE, memPtrA );
223 memPtrA += bbs_memRead32( &ptrA->minDefScaleE, memPtrA );
224 memPtrA += bbs_memRead32( &ptrA->maxDefScaleE, memPtrA );
225 memPtrA += bbs_memRead32( &ptrA->scaleStepE, memPtrA );
226 memPtrA += bbs_memRead32( &ptrA->overlapThrE, memPtrA );
227 memPtrA += bbs_memRead32( &ptrA->borderWidthE, memPtrA );
228 memPtrA += bbs_memRead32( &ptrA->borderHeightE, memPtrA );
229 memPtrA += bbs_memRead32( &ptrA->featuresE, memPtrA );
230 for( iL = 0; iL < ptrA->featuresE; iL++ ) memPtrA += bbf_BitParam_memRead( cpA, &ptrA->bitParamArrE[ iL ], memPtrA );
231 for( iL = 0; iL < ptrA->featuresE; iL++ ) memPtrA += bbf_Sequence_memRead( cpA, &ptrA->featureArrE[ iL ], memPtrA, &memTblL );
232 memPtrA += bts_IdCluster2D_memRead( cpA, &ptrA->refClusterE, memPtrA, espL );
233 memPtrA += bbs_memRead32( &ptrA->refDistanceE, memPtrA );
235 if( memSizeL != bbf_ScanDetector_memSize( cpA, ptrA ) )
237 bbs_ERR0( bbs_ERR_CORRUPT_DATA, "uint32 bbf_ScanDetector_memRead( struct bem_ScanGradientMove* ptrA, const uint16* memPtrA ):\n"
243 ptrA->minScaleE = ptrA->minDefScaleE;
244 ptrA->maxScaleE = ptrA->maxDefScaleE;
248 uint32 maxImageSizeL = ptrA->maxImageWidthE * ptrA->maxImageHeightE;
261 for( iL = 0; iL < ptrA->featuresE; iL++ )
263 maxRadiusL = maxRadiusL > ptrA->bitParamArrE[ iL ].outerRadiusE ? maxRadiusL : ptrA->bitParamArrE[ iL ].outerRadiusE;
268 bbf_Scanner_create( cpA, &ptrA->scannerE,
270 ptrA->maxImageWidthE,
271 ptrA->maxImageHeightE,
273 ptrA->patchWidthE,
274 ptrA->patchHeightE,
275 ptrA->minScaleE,
276 ptrA->maxScaleE,
277 ptrA->scaleStepE,
278 ptrA->borderWidthE,
279 ptrA->borderHeightE,
298 struct bbf_ScanDetector* ptrA,
311 struct bbf_Scanner* scannerPtrL = &ptrA->scannerE;
313 scannerPtrL->minScaleE = ptrA->minScaleE;
314 scannerPtrL->maxScaleE = ptrA->maxScaleE;
319 if( ptrA->featuresE == 0 )
325 if( imageWidthA > ptrA->maxImageWidthE || imageHeightA > ptrA->maxImageHeightE )
335 bbf_Scanner_assign( cpA, scannerPtrL, imagePtrA, imageWidthA, imageHeightA, roiPtrA, &ptrA->bitParamArrE[ 0 ] );
344 const struct bbf_Feature* featurePtrL = ( const struct bbf_Feature* )&ptrA->featureArrE[ 0 ];
345 const struct bbf_BitParam* paramPtrL = &ptrA->bitParamArrE[ 0 ];
367 for( iL = 1; iL < ptrA->featuresE; iL++ )
369 const struct bbf_Feature* featurePtrL = ( const struct bbf_Feature* )&ptrA->featureArrE[ iL ];
370 const struct bbf_BitParam* paramPtrL = &ptrA->bitParamArrE[ iL ];
410 int32 actL = ( bestActL >> 4 ) + ( ( ( int32 )( bestLvlL + 1 - ptrA->featuresE ) << 24 ) / ( int32 )ptrA->featuresE );
428 bbf_Scanner_removeIntOverlaps( cpA, scannerPtrL, ptrA->overlapThrE );
445 bbf_Scanner_removeOutOverlaps( cpA, scannerPtrL, ptrA->overlapThrE );