Skip to content

Commit

Permalink
DOC: Rename UpsampleOrDownsampleAScalarImage to ResampleAScalarImage
Browse files Browse the repository at this point in the history
This just illustrates resampling, not necessarily upsampling or downsampling. Upsampling should take into consideration the interpolator and downsampling should filter for aliasing.
  • Loading branch information
thewtex committed Mar 8, 2021
1 parent 663b75c commit 86f6213
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 35 deletions.
6 changes: 3 additions & 3 deletions src/Filtering/ImageGrid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ compare_to_baseline(
BASELINE_PREFIX BrainProtonDensitySlice
)

add_example( UpsampleOrDownsampleScalarImage )
add_example( ResampleAScalarImage )
compare_to_baseline(
EXAMPLE_NAME UpsampleOrDownsampleScalarImage
EXAMPLE_NAME ResampleAScalarImage
BASELINE_PREFIX OutputBaseline
)

Expand Down Expand Up @@ -105,4 +105,4 @@ compare_to_baseline(EXAMPLE_NAME RunImageFilterOnRegionOfImage
add_example(CropImageBySpecifyingRegion2)
compare_to_baseline(EXAMPLE_NAME CropImageBySpecifyingRegion2
BASELINE_PREFIX CropImageBySpecifyingRegion2
)
)
28 changes: 28 additions & 0 deletions src/Filtering/ImageGrid/ResampleAScalarImage/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.10.2)

project(ResampleAScalarImage )

find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

add_executable(ResampleAScalarImage Code.cxx)
target_link_libraries(ResampleAScalarImage ${ITK_LIBRARIES})

install(TARGETS ResampleAScalarImage
DESTINATION bin/ITKExamples/Filtering/ImageGrid
COMPONENT Runtime
)

install(FILES Code.cxx CMakeLists.txt
DESTINATION share/ITKExamples/Code/Filtering/ImageGrid/ResampleAScalarImage
COMPONENT Code
)

enable_testing()
add_test(NAME ResampleAScalarImageTest
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleAScalarImage
${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
Output.png
160
120
)
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Resample Scalar Image
=====================
Resample a Scalar Image
=======================

.. index::
single: ResampleImageFilter

Synopsis
--------

Resample one scalar image
Resample a scalar image.


Results
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/Filtering/ImageGrid/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ ImageGrid
Stack2DImagesInto3DImage/Documentation.rst
TileImagesSideBySide/Documentation.rst
UpsampleAnImage/Documentation.rst
UpsampleOrDownsampleScalarImage/Documentation.rst
ResampleAScalarImage/Documentation.rst
WarpAnImageUsingADeformationField/Documentation.rst

0 comments on commit 86f6213

Please sign in to comment.