Skip to content
Snippets Groups Projects
Commit 707081f0 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

ENH: Create testing for ImageRegionNonUniformMultidimensionalSplitter class

parent 11604148
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ ImageRegionNonUniformMultidimensionalSplitter<VImageDimension>
// ::ceil( vcl_pow((double) requestedNumber, 1.0/(double) VImageDimension));
unsigned int numberOfPiecesLeft=requestedNumber;
unsigned int i, j, numPieces;
unsigned int j, numPieces;
numPieces = 1;
for (j=VImageDimension;j>0;--j)
......
......@@ -667,6 +667,23 @@ ADD_TEST(coTvImageOfVectorsToMonoChannelExtractROI ${COMMON_TESTS8}
${TEMP}/coImageOfVectorsToMonoChannelExtractROI.png
)
# ------------- otb::ImageRegionNonUniformMultidimensionalSplitter ----------------------------
ADD_TEST(coTuImageRegionNonUniformMultidimensionalSplitterNew ${COMMON_TESTS8}
otbImageRegionNonUniformMultidimensionalSplitterNew
)
ADD_TEST(coTvImageRegionNonUniformMultidimensionalSplitter ${COMMON_TESTS8}
--compare-ascii ${TOL}
${BASELINE_FILES}/coImageRegionNonUniformMultidimensionalSplitter.txt
${TEMP}/coImageRegionNonUniformMultidimensionalSplitter.txt
otbImageRegionNonUniformMultidimensionalSplitter
45 45 # Index
1000 1500 # Size
10 # Nb split
2 # Number of slipt
${TEMP}/coImageRegionNonUniformMultidimensionalSplitter.txt
)
# ------- Fichiers sources CXX -----------------------------------
SET(BasicCommon_SRCS1
otbSystemTest.cxx
......@@ -765,6 +782,8 @@ otbImageRegionTileMapSplitterNew.cxx
otbImageRegionTileMapSplitter.cxx
otbImageOfVectorsToMonoChannelExtractROINew.cxx
otbImageOfVectorsToMonoChannelExtractROI.cxx
otbImageRegionNonUniformMultidimensionalSplitterNew.cxx
otbImageRegionNonUniformMultidimensionalSplitter.cxx
)
INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")
......
......@@ -32,4 +32,6 @@ REGISTER_TEST(otbImageRegionTileMapSplitterNew);
REGISTER_TEST(otbImageRegionTileMapSplitter);
REGISTER_TEST(otbImageOfVectorsToMonoChannelExtractROINew);
REGISTER_TEST(otbImageOfVectorsToMonoChannelExtractROI);
REGISTER_TEST(otbImageRegionNonUniformMultidimensionalSplitterNew);
REGISTER_TEST(otbImageRegionNonUniformMultidimensionalSplitter);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment