Skip to content

Commit 712f975

Browse files
committed
Merge branch 4.x
2 parents f7d6288 + 5409e01 commit 712f975

File tree

4 files changed

+11
-24
lines changed

4 files changed

+11
-24
lines changed

modules/cudaimgproc/src/histogram.cpp

-21
Original file line numberDiff line numberDiff line change
@@ -553,24 +553,6 @@ namespace
553553
};
554554
}
555555

556-
class OldNppStreamHandlerForEvenLevels
557-
{
558-
public:
559-
explicit OldNppStreamHandlerForEvenLevels(Stream& newStream)
560-
{
561-
oldStream = nppGetStream();
562-
nppSafeSetStream(oldStream, StreamAccessor::getStream(newStream));
563-
}
564-
565-
~OldNppStreamHandlerForEvenLevels()
566-
{
567-
nppSafeSetStream(nppGetStream(), oldStream);
568-
}
569-
570-
private:
571-
cudaStream_t oldStream;
572-
};
573-
574556
void cv::cuda::evenLevels(OutputArray _levels, int nLevels, int lowerLevel, int upperLevel, Stream& stream)
575557
{
576558
const int kind = _levels.kind();
@@ -583,9 +565,6 @@ void cv::cuda::evenLevels(OutputArray _levels, int nLevels, int lowerLevel, int
583565
else
584566
host_levels = _levels.getMat();
585567

586-
// Update to use NppStreamHandler when nppiEvenLevelsHost_32s_Ctx is included in nppist.lib and libnppist.so
587-
OldNppStreamHandlerForEvenLevels h(stream);
588-
589568
nppSafeCall( nppiEvenLevelsHost_32s(host_levels.ptr<Npp32s>(), nLevels, lowerLevel, upperLevel) );
590569

591570
if (kind == _InputArray::CUDA_GPU_MAT)

modules/xfeatures2d/include/opencv2/xfeatures2d.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,8 @@ class CV_EXPORTS_W TBMR : public AffineFeature2D
12131213
CV_WRAP virtual float getScaleFactor() const = 0;
12141214
CV_WRAP virtual void setNScales(int n_scales) = 0;
12151215
CV_WRAP virtual int getNScales() const = 0;
1216+
1217+
CV_WRAP String getDefaultName() const CV_OVERRIDE;
12161218
};
12171219

12181220
/** @brief Class implementing the BRISK keypoint detector and descriptor extractor, described in @cite LCS11 .

modules/xfeatures2d/src/tbmr.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,11 @@ void TBMR_Impl::detectAndCompute(
573573
useProvidedKeypoints);
574574
}
575575

576+
String TBMR::getDefaultName() const
577+
{
578+
return (Feature2D::getDefaultName() + ".TBMR");
579+
}
580+
576581
Ptr<TBMR> TBMR::create(int _min_area, float _max_area_relative, float _scale,
577582
int _n_scale)
578583
{
@@ -581,4 +586,4 @@ Ptr<TBMR> TBMR::create(int _min_area, float _max_area_relative, float _scale,
581586
}
582587

583588
} // namespace xfeatures2d
584-
} // namespace cv
589+
} // namespace cv

modules/ximgproc/src/find_ellipses.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1218,9 +1218,10 @@ void EllipseDetectorImpl::getTriplets413(VVP &pi, VVP &pj, VVP &pk,
12181218
}
12191219
}
12201220

1221-
void EllipseDetectorImpl::preProcessing(Mat1b &image, Mat1b &dp, Mat1b &dn) {
1221+
void EllipseDetectorImpl::preProcessing(Mat1b &src, Mat1b &dp, Mat1b &dn) {
12221222
// smooth image
1223-
GaussianBlur(image, image, _kernelSize, _sigma);
1223+
Mat image;
1224+
GaussianBlur(src, image, _kernelSize, _sigma);
12241225

12251226
// temp variables
12261227
Mat1b edges;// edge mask

0 commit comments

Comments
 (0)