
ModulusImageFilter
Please use this identifier to cite or link to this publication: http://hdl.handle.net/1926/144 |
Published in The Insight Journal - 2005 August - December.
Submitted by Gaetan Lehmann on 11-14-2006.
ModulusImageFilter is a simple image filter to compute the modulus (x % dividend) pixel-wise.
Data
Code







Click here for more details.
Go here to access the main testing dashboard.
Reviews







Summary:
An itk UnaryImageFilter that computes the modulus of an image.
Evidence:
The figures in the paper illustrate the technique. A test is also provided with both input and output images.
Open Science:
All the code is present.
Reproducibility:
I downloaded the code. It compiled on both Visual Studio 7 and Borland.
I had to edit the CMakeLists.txt file to add ${EXECUTABLE_OUTPUT_PATH} to the ADD_TEST command so that I could run the tests with ctest.
Use of Open Source Software:
The author used CMake and itk.
Open Source Contributions:
All source and test code was provided.
Code Quality:
Programming style conforms to itk style. Name of class and methods are acceptable. A PrintSelf method is provided.
Suggestions for future work:
Before adding to itk, the operator== and operator!= methods should be added to the Functor. This corresponds to recent changes in itk. Also, the test should be modified to use the itk testing framework before adding to itk. This work can be done by the itk Shepard for this code.
An itk UnaryImageFilter that computes the modulus of an image.
Evidence:
The figures in the paper illustrate the technique. A test is also provided with both input and output images.
Open Science:
All the code is present.
Reproducibility:
I downloaded the code. It compiled on both Visual Studio 7 and Borland.
I had to edit the CMakeLists.txt file to add ${EXECUTABLE_OUTPUT_PATH} to the ADD_TEST command so that I could run the tests with ctest.
ADD_TEST(Modulus ${EXECUTABLE_OUTPUT_PATH}/modulus ${CMAKE_SOURCE_DIR}/Spots.png out.png distance.png)
ADD_TEST(CompareImage ${EXECUTABLE_OUTPUT_PATH}/ImageCompare out.png ${CMAKE_SOURCE_DIR}/modulus.png)
Use of Open Source Software:
The author used CMake and itk.
Open Source Contributions:
All source and test code was provided.
Code Quality:
Programming style conforms to itk style. Name of class and methods are acceptable. A PrintSelf method is provided.
Suggestions for future work:
Before adding to itk, the operator== and operator!= methods should be added to the Functor. This corresponds to recent changes in itk. Also, the test should be modified to use the itk testing framework before adding to itk. This work can be done by the itk Shepard for this code.
Comment by Gaetan Lehmann: method names comments

I would be pleased to see a good english speaker rename the class and methods to something which seems better to an english reader. I'm just not good enough in english to say if what I choose is correct.
Gaetan







Summary:
Unary functor filter to perform the modulus operator per pixel.
Use of Open Source Software:
This is subclass of UnaryFunctorImageFilter
Code Quality:
Visual inspection of the code looks fine.
Suggestions for future work:
Should probably use the ConceptChecking facilities to ensure the input image type is integral.
Unary functor filter to perform the modulus operator per pixel.
Use of Open Source Software:
This is subclass of UnaryFunctorImageFilter
Code Quality:
Visual inspection of the code looks fine.
Suggestions for future work:
Should probably use the ConceptChecking facilities to ensure the input image type is integral.
Quick Comments
Resources
![]() |
|
Download All |
Statistics more
![]() |
|
Global rating: | ![]() ![]() ![]() ![]() ![]() |
Review rating: | ![]() ![]() ![]() ![]() ![]() |
Code rating: | ![]() ![]() ![]() ![]() ![]() |
Paper Quality: |
![]() ![]() |
Information more
![]() |
|
Categories: | Filtering |
Keywords: | Modulus, UnaryFunctorImageFilter |
Toolkits: | ITK (moved into the toolkit), CMake |
Export citation: |
Share
![]() |
Linked Publications more
![]() |
||
![]() by Saboo R., Julian R., Stephen P.
|
||
![]() by Araujo A., Bellon O., Silva L., Vieira E., Cat M.
|
View license
Loading license...
Send a message to the author
