mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
bugfix
This commit is contained in:
parent
a86e036594
commit
5376863c0c
@ -773,7 +773,7 @@ private:
|
||||
memoryCounter_ += int(veclen_*sizeof(CentersType));
|
||||
unsigned int* mean_accumulator = new unsigned int[accumulator_veclen];
|
||||
|
||||
memset(mean_accumulator, 0, accumulator_veclen);
|
||||
memset(mean_accumulator, 0, sizeof(unsigned int)*accumulator_veclen);
|
||||
|
||||
for (unsigned int i=0; i<indices_length; ++i) {
|
||||
variance += static_cast<unsigned long long>( ensureSquareDistance<Distance>(
|
||||
|
Loading…
Reference in New Issue
Block a user