Skip to content

Commit 86f6213

Browse files
committed
DOC: Rename UpsampleOrDownsampleAScalarImage to ResampleAScalarImage
This just illustrates resampling, not necessarily upsampling or downsampling. Upsampling should take into consideration the interpolator and downsampling should filter for aliasing.
1 parent 663b75c commit 86f6213

File tree

8 files changed

+35
-35
lines changed

8 files changed

+35
-35
lines changed

src/Filtering/ImageGrid/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ compare_to_baseline(
4444
BASELINE_PREFIX BrainProtonDensitySlice
4545
)
4646

47-
add_example( UpsampleOrDownsampleScalarImage )
47+
add_example( ResampleAScalarImage )
4848
compare_to_baseline(
49-
EXAMPLE_NAME UpsampleOrDownsampleScalarImage
49+
EXAMPLE_NAME ResampleAScalarImage
5050
BASELINE_PREFIX OutputBaseline
5151
)
5252

@@ -105,4 +105,4 @@ compare_to_baseline(EXAMPLE_NAME RunImageFilterOnRegionOfImage
105105
add_example(CropImageBySpecifyingRegion2)
106106
compare_to_baseline(EXAMPLE_NAME CropImageBySpecifyingRegion2
107107
BASELINE_PREFIX CropImageBySpecifyingRegion2
108-
)
108+
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
cmake_minimum_required(VERSION 3.10.2)
2+
3+
project(ResampleAScalarImage )
4+
5+
find_package(ITK REQUIRED)
6+
include(${ITK_USE_FILE})
7+
8+
add_executable(ResampleAScalarImage Code.cxx)
9+
target_link_libraries(ResampleAScalarImage ${ITK_LIBRARIES})
10+
11+
install(TARGETS ResampleAScalarImage
12+
DESTINATION bin/ITKExamples/Filtering/ImageGrid
13+
COMPONENT Runtime
14+
)
15+
16+
install(FILES Code.cxx CMakeLists.txt
17+
DESTINATION share/ITKExamples/Code/Filtering/ImageGrid/ResampleAScalarImage
18+
COMPONENT Code
19+
)
20+
21+
enable_testing()
22+
add_test(NAME ResampleAScalarImageTest
23+
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleAScalarImage
24+
${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
25+
Output.png
26+
160
27+
120
28+
)

src/Filtering/ImageGrid/UpsampleOrDownsampleScalarImage/Documentation.rst renamed to src/Filtering/ImageGrid/ResampleAScalarImage/Documentation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Resample Scalar Image
2-
=====================
1+
Resample a Scalar Image
2+
=======================
33

44
.. index::
55
single: ResampleImageFilter
66

77
Synopsis
88
--------
99

10-
Resample one scalar image
10+
Resample a scalar image.
1111

1212

1313
Results

src/Filtering/ImageGrid/UpsampleOrDownsampleScalarImage/CMakeLists.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/Filtering/ImageGrid/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ ImageGrid
2424
Stack2DImagesInto3DImage/Documentation.rst
2525
TileImagesSideBySide/Documentation.rst
2626
UpsampleAnImage/Documentation.rst
27-
UpsampleOrDownsampleScalarImage/Documentation.rst
27+
ResampleAScalarImage/Documentation.rst
2828
WarpAnImageUsingADeformationField/Documentation.rst

0 commit comments

Comments
 (0)