mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
Merge pull request #12333 from wzw-intel:prior_box
This commit is contained in:
commit
8a8d07fb17
@ -453,8 +453,8 @@ public:
|
|||||||
outputPtr = outputs[0].ptr<float>(0, 1);
|
outputPtr = outputs[0].ptr<float>(0, 1);
|
||||||
if(_variance.size() == 1)
|
if(_variance.size() == 1)
|
||||||
{
|
{
|
||||||
Mat secondChannel(outputs[0].size[2], outputs[0].size[3], CV_32F, outputPtr);
|
Mat secondChannel(1, outputs[0].size[2], CV_32F, outputPtr);
|
||||||
secondChannel.setTo(Scalar(_variance[0]));
|
secondChannel.setTo(Scalar::all(_variance[0]));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user