ITK/Examples/ImageProcessing/HammingWindowFunction

From KitwarePublic
< ITK‎ | Examples
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

HammingWindowFunction.cxx

<source lang="cpp">

  1. include <itkImage.h>
  2. 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>