Please use this identifier to cite or link to this publication:
ModulusImageFilter is a simple image filter to compute the modulus (x % dividend) pixel-wise.
minus 2 Files (156Kb)
minus Automatic Testing Results by Insight-Journal Dashboard on Wed Nov 23 13:28:06 2005 for revision #1
starstarstarstarstar expertise: 5 sensitivity: 5
yellow This project passed all of its tests.
Click here for more details.

Go here to access the main testing dashboard.

minus Quick addition to itk unary image filters by Bill Lorensen on 01-30-2006 for revision #1
starstarstarstarstar expertise: 5 sensitivity: 5
An itk UnaryImageFilter that computes the modulus of an image.

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.

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 yellow
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.

minus Small simple contribution, only small extenstion suggested. by Jim Miller on 01-27-2006 for revision #1
starstarstarstarstar expertise: 5 sensitivity: 5
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.
Add a new review
Quick Comments

Download All

Statistics more
Global rating: starstarstarstarstar
Review rating: starstarstarstarstar [review]
Code rating: starstarstarstarstar
Paper Quality: plus minus

Information more
Categories: Filtering
Keywords: Modulus, UnaryFunctorImageFilter
Toolkits: ITK (moved into the toolkit), CMake
Export citation:


Linked Publications more
Anisotropic Fast Marching in ITK Anisotropic Fast Marching in ITK
by Mirebeau J.
ITK in Biomedical Research and Commercial Applications ITK in Biomedical Research and Commercial Applications
by McCormick M., Aylward S., Johnson H., Lowekamp B.

View license
Loading license...

Send a message to the author
Powered by Midas