Skip to content

Commit 77fe559

Browse files
committed
privateのメソッド名修正
1 parent b1473fa commit 77fe559

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/ximgproc/src/sparse_table_morphology.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct StStep
4848
* - The width and the height of each rectangles are power of 2.
4949
* - Overlappings of rectangles are allowed.
5050
*/
51-
std::vector<Rect> genPow2RectsToCoverKernel(InputArray _kernel)
51+
static std::vector<Rect> genPow2RectsToCoverKernel(InputArray _kernel)
5252
{
5353
CV_Assert(_kernel.type() == CV_8UC1);
5454

@@ -163,7 +163,7 @@ std::vector<Rect> genPow2RectsToCoverKernel(InputArray _kernel)
163163
* https://link.springer.com/article/10.1007/BF01758762
164164
*
165165
*/
166-
static std::vector<StStep> makePlan(std::vector<std::vector<bool>> sparseMatMap)
166+
static std::vector<StStep> planSparseTableConstruction(std::vector<std::vector<bool>> sparseMatMap)
167167
{
168168
auto comparePos = [](Point lp, Point rp) {
169169
int diffx = lp.x - rp.x;
@@ -205,7 +205,7 @@ static std::vector<StStep> makePlan(std::vector<std::vector<bool>> sparseMatMap)
205205
return ans;
206206
}
207207

208-
static void makeMinStMat(InputArray src, OutputArray dst, int rowStep, int colStep)
208+
static void makeMinSparseTableMat(InputArray src, OutputArray dst, int rowStep, int colStep)
209209
{
210210
CV_Assert(rowStep * colStep == 0); // one of "rowStep" or "colStep" is required to be 0.
211211

@@ -238,7 +238,7 @@ static void makeMinStMat(InputArray src, OutputArray dst, int rowStep, int colSt
238238
dstPtr += borderSkipStep;
239239
}
240240
}
241-
static void makeMaxStMat(InputArray src, OutputArray dst, int rowStep, int colStep)
241+
static void makeMaxSparseTableMat(InputArray src, OutputArray dst, int rowStep, int colStep)
242242
{
243243
CV_Assert(rowStep * colStep == 0); // one of "rowStep" or "colStep" is required to be 0.
244244

@@ -324,7 +324,7 @@ void erode(InputArray _src, OutputArray _dst, InputArray _kernel, Point anchor,
324324
for (int i = 0; i < pow2Rects.size(); i++) sparseMatMap[pow2Rects[i].height][pow2Rects[i].width] = true;
325325

326326
// スパーステーブルの生成計画を立てる; planning how to calculate required mats in sparse table
327-
std::vector<StStep> stProcess = makePlan(sparseMatMap);
327+
std::vector<StStep> stProcess = planSparseTableConstruction(sparseMatMap);
328328

329329
// スパーステーブルの生成; generate sparse table
330330
std::vector<std::vector<Mat*>> st(log2[kernel.rows] + 1, std::vector<Mat*>(log2[kernel.cols] + 1));
@@ -336,11 +336,11 @@ void erode(InputArray _src, OutputArray _dst, InputArray _kernel, Point anchor,
336336
{
337337
case Dim::Col:
338338
st[step.dimRow][step.dimCol + 1] = new Mat(expandedSrc.rows, expandedSrc.cols, expandedSrc.type());
339-
makeMinStMat(*st[step.dimRow][step.dimCol], *st[step.dimRow][step.dimCol + 1], 0, 1 << step.dimCol);
339+
makeMinSparseTableMat(*st[step.dimRow][step.dimCol], *st[step.dimRow][step.dimCol + 1], 0, 1 << step.dimCol);
340340
break;
341341
case Dim::Row:
342342
st[step.dimRow + 1][step.dimCol] = new Mat(expandedSrc.rows, expandedSrc.cols, expandedSrc.type());
343-
makeMinStMat(*st[step.dimRow][step.dimCol], *st[step.dimRow + 1][step.dimCol], 1 << step.dimRow, 0);
343+
makeMinSparseTableMat(*st[step.dimRow][step.dimCol], *st[step.dimRow + 1][step.dimCol], 1 << step.dimRow, 0);
344344
break;
345345
}
346346
}

0 commit comments

Comments
 (0)