openmicroscopy/bioformats — pull request #67 by hinerm (2012-05-09 19:09:04+00:00)
Title: Bf itk windows

This branch integrates a Windows-friendly itkBioFormatsImageIO.cxx contributed by Joe Ping-Lin Hsiao.

Changes include:
* Updating the scijava version to 1.11 from 1.06 (required to build the C++ versions of bio-formats)
* Support for Debug/Release specification on Windows via CMake
* Infinite loop fix on OSX
* Consolidation of Windows-specific dllexport code to the Win32Header file as intended

Testing instructions:

Pre-requisites:
ITK v3.20, built with ITK_USE_REVIEW flag set ON
(optional) build ITK with BUILD_EXAMPLES set ON as well. The example programs can be used to test the BF-ITK plugin if you don't have another ITK-based project on hand.

Note: only bf-itk-pipe needs to be tested

Windows-specific instructions:
Configure once with BFITK_WIN_BUILD_DEBUG enabled and verify the copy paths include "\Debug"
Configure once with BFITK_WIN_BUILD_DEBUG disabled and verify the copy paths include "\Release"

This can be verified without building BF-ITK by adding a "message(${BF_BUILD_TYPE})" line after BF_BUILD_TYPE is set in the Copy Targets code section, in the CMakeLists.txt file

Windows/Mac/Linux instructions:
Build bf-itk-pipe using the appropriate CMake output.

To actually verify functionality, attempt to open an image not natively supported by ITK (e.g. an ICS image) using an ITK-based reader first without any environment variables set, and then with ITK_AUTOLOAD_PATH set to
${Bio_Formats_top_level}\components\native\bf-itk-pipe\${build_dir}\dist\bf-itk

With no path set, you should receive a failure message "NO IMAGEIO PRESENT"
With the path set, the image should process properly.