Commit a0f729f5a998f6e8efa5686d6a562811046b6bff
1 parent
31704f50
Remove comment
Showing
1 changed file
with
1 additions
and
2 deletions
openbr/plugins/hist.cpp
| @@ -55,8 +55,7 @@ class HistTransform : public UntrainableTransform | @@ -55,8 +55,7 @@ class HistTransform : public UntrainableTransform | ||
| 55 | Mat hist, chan = mv[i]; | 55 | Mat hist, chan = mv[i]; |
| 56 | // calcHist requires F or U, might as well convert just in case | 56 | // calcHist requires F or U, might as well convert just in case |
| 57 | if (mv[i].depth() != CV_8U || mv[i].depth() == CV_32F) | 57 | if (mv[i].depth() != CV_8U || mv[i].depth() == CV_32F) |
| 58 | - mv[i].convertTo(chan, CV_32FC1); | ||
| 59 | -// qDebug("clust r %i c %i ch %i", chan.rows, chan.cols, chan.channels()); | 58 | + mv[i].convertTo(chan, CV_32F); |
| 60 | calcHist(&chan, 1, channels, Mat(), hist, 1, histSize, ranges); | 59 | calcHist(&chan, 1, channels, Mat(), hist, 1, histSize, ranges); |
| 61 | memcpy(m.ptr(i), hist.ptr(), dims * sizeof(float)); | 60 | memcpy(m.ptr(i), hist.ptr(), dims * sizeof(float)); |
| 62 | } | 61 | } |