/usr/src/WrapITK/Java/Tests/simplePipeline.java.in is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import InsightToolkit.*;
// This example illustrates how C++ classes can be used from Java using SWIG.
// The Java class gets mapped onto the C++ class and behaves as if it is a Java class.
public class simplePipeline@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@ {
public static void main(String argv[])
{
itkImageFileReaderI@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@_Pointer reader = itkImageFileReaderI@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@.itkImageFileReaderI@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@_New();
reader.SetFileName(argv[0]);
itkImageFileWriterI@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@_Pointer writer = itkImageFileWriterI@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@.itkImageFileWriterI@JAVA_TEST_PIXEL_TYPE@@JAVA_TEST_IMAGE_DIMENSION@_New();
writer.SetInput(reader.GetOutput());
writer.SetFileName(argv[1]);
writer.Update();
}
}
|