<div dir="ltr">Hi Siavash,<div><br></div><div>Thanks for pinging the lists on your efforts.  I have added your GitHub account to the repository to make changes.</div><div><br></div><div>Until the module is merged as a remote module, the IO will be have to be registered manually as shown here:</div><div><br></div><div>  <a href="https://github.com/InsightSoftwareConsortium/ITKIOOpenSlide/blob/master/test/itkOpenSlideImageIOTest.cxx#L37">https://github.com/InsightSoftwareConsortium/ITKIOOpenSlide/blob/master/test/itkOpenSlideImageIOTest.cxx#L37</a></div><div><br></div><div>HTH,</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 26, 2015 at 1:14 PM, siavashk <span dir="ltr"><<a href="mailto:siavashk@ece.ubc.ca" target="_blank">siavashk@ece.ubc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am trying to use ITK with OpenSlide and it seems that there is an external<br>
module for this. I followed the instructions that you had on<br>
<a href="https://github.com/InsightSoftwareConsortium/ITKOpenSlideIO" rel="noreferrer" target="_blank">https://github.com/InsightSoftwareConsortium/ITKOpenSlideIO</a> to try to<br>
compile OpenSlide with ITK.<br>
<br>
I am running the latest stable clone ITK (4.7.1), Windows 8.1 (64-bit) and<br>
compiling in VS 12.0, 2013. I used the OpenSlide 64-bit binaries from<br>
<a href="http://openslide.org/download/" rel="noreferrer" target="_blank">http://openslide.org/download/</a> (2015-04-20  release).<br>
<br>
There was a configuration error in the CMake, so I changed the dependency in<br>
itk-module.cmake from itkIOBase to ITKIOImageBase. I am guessing I had to<br>
this is because of migration to ITK-v4.<br>
<br>
Next, I built ITK with the external module enabled. Everything compiled<br>
fine, or so I think. Afterwards, I wrote a small test program to see if I<br>
can read the pathology images in your input folder with ITKOpenSlide (I have<br>
attached the source code and the data). However, ITK throws the following<br>
exception when I try to read images:<br>
<br>
itk::ExceptionObject (00000000016B0B2EF30)<br>
Location: "unsigned int __cdecl itk::ImageIOBase::GetComponentSize(void)<br>
const"<br>
File: C:\Users\siavash\devel\ITK\Modules\IO\ImageBase\src\itkImageIOBase.cxx<br>
Line:367<br>
Description: itk::Error: OpenSlideImageIO(000000016B3308640): Unknown<br>
component type: 0<br>
<br>
If there is an easy fix for this, I would appreciate if anyone could help<br>
me. Otherwise, I would appreciate it if people would give me some hints as<br>
how to write the reader from scratch. I have an approximate knowledge of how<br>
factories work and how they are registered in ITK, but I have never written<br>
a reader from scratch.<br>
<br>
Thank you,<br>
<br>
Siavash<br>
<br>
CMakeLists.txt <<a href="http://itk-users.7.n7.nabble.com/file/n35834/CMakeLists.txt" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/file/n35834/CMakeLists.txt</a>><br>
itkOpenSlideImageIOTest.cxx<br>
<<a href="http://itk-users.7.n7.nabble.com/file/n35834/itkOpenSlideImageIOTest.cxx" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/file/n35834/itkOpenSlideImageIOTest.cxx</a>><br>
15711_tiled.md5<br>
<<a href="http://itk-users.7.n7.nabble.com/file/n35834/15711_tiled.md5" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/file/n35834/15711_tiled.md5</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Using-ITK-with-OpenSlide-tp35834.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/Using-ITK-with-OpenSlide-tp35834.html</a><br>
Sent from the ITK - Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>