ITK/Examples/ImageProcessing/HammingWindowFunction
From KitwarePublic
< ITK | Examples
Jump to navigationJump to search
Revision as of 22:06, 27 January 2011 by Daviddoria (talk | contribs) (Created page with "==HammingWindowFunction.cxx== <source lang="cpp"> #include <itkImage.h> #include <itkWindowedSincInterpolateImageFunction.h> int main(int, char*[]) { typedef itk::Function::Ha...")
HammingWindowFunction.cxx
<source lang="cpp">
- include <itkImage.h>
- include <itkWindowedSincInterpolateImageFunction.h>
int main(int, char*[]) {
typedef itk::Function::HammingWindowFunction<5> HammingWindowFunctionType; HammingWindowFunctionType hammingWindowFunction; std::cout << "Value at 1.3: " << hammingWindowFunction(1.3) << std::endl;
return EXIT_SUCCESS;
}
</source>
CMakeLists.txt
<source lang="cmake"> cmake_minimum_required(VERSION 2.6)
PROJECT(HammingWindowFunction)
FIND_PACKAGE(ITK REQUIRED) INCLUDE(${ITK_USE_FILE})
ADD_EXECUTABLE(HammingWindowFunction HammingWindowFunction.cxx) TARGET_LINK_LIBRARIES(HammingWindowFunction ITKCommon)
</source>