fixed bug in ms segmentation

This commit is contained in:
Alexey Spizhevoy 2010-11-30 13:02:24 +00:00
parent 32a9b63d2f
commit d0dfae5143
2 changed files with 1 additions and 2 deletions

View File

@ -286,7 +286,7 @@ void cv::gpu::meanShiftSegmentation(const GpuMat& src, Mat& dst, int sp, int sr,
g.addEdge(pix(y, x, ncols), pix(y, x + 1, ncols), SegmLinkVal(dr[0], dsp[0])); g.addEdge(pix(y, x, ncols), pix(y, x + 1, ncols), SegmLinkVal(dr[0], dsp[0]));
g.addEdge(pix(y, x, ncols), pix(y + 1, x, ncols), SegmLinkVal(dr[1], dsp[1])); g.addEdge(pix(y, x, ncols), pix(y + 1, x, ncols), SegmLinkVal(dr[1], dsp[1]));
g.addEdge(pix(y, x, ncols), pix(y + 1, x + 1, ncols), SegmLinkVal(dr[2], dsp[2])); g.addEdge(pix(y, x, ncols), pix(y + 1, x + 1, ncols), SegmLinkVal(dr[2], dsp[2]));
g.addEdge(pix(y, x + 1, ncols), pix(y, x + 1, ncols), SegmLinkVal(dr[3], dsp[3])); g.addEdge(pix(y, x + 1, ncols), pix(y + 1, x, ncols), SegmLinkVal(dr[3], dsp[3]));
} }
} }
for (int y = 0; y < nrows - 1; ++y) for (int y = 0; y < nrows - 1; ++y)

View File

@ -692,7 +692,6 @@ struct CV_GpuCornerMinEigenValTest: CvTest
if (depth == CV_32F) if (depth == CV_32F)
rng.fill(src, RNG::UNIFORM, cv::Scalar(0), cv::Scalar(1)); rng.fill(src, RNG::UNIFORM, cv::Scalar(0), cv::Scalar(1));
double k = 0.1;
int borderType = BORDER_DEFAULT; int borderType = BORDER_DEFAULT;
cv::Mat dst_gold; cv::Mat dst_gold;