<div dir="ltr">Sorry about that.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 12:12 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Scott,<br>
<br>
Please keep the users list cc'ed on these email.<br>
<br>
It does look like a factory issue but it you built with cmake you<br>
should be file. Please share tour CMakeCache.txt file.<br>
<span class="HOEnZb"><font color="#888888"><br>
Bill<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, May 20, 2014 at 2:00 PM, Scott Pfeifer <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>> wrote:<br>
> Do you think the imageiofactory is getting confused here? I thought that it<br>
> determined which io object to using the filename extention. Do you think it<br>
> would be worth while to assign a metaimageio object and take any confusion<br>
> out of the situation?<br>
><br>
><br>
><br>
> On Tue, May 20, 2014 at 11:50 AM, Scott Pfeifer <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>><br>
> wrote:<br>
>><br>
>> This has happened with a number of files and on one run of my application<br>
>> everything goes fine and other times I'll see this I have looked at the<br>
>> images using imagej and everything looks fine.<br>
>><br>
>><br>
>> On Tue, May 20, 2014 at 11:49 AM, Scott Pfeifer <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> I am building itk myself and I used used cmake to configure the build. I<br>
>>> do not know what tiff library I am using. How can I tell what tiff library<br>
>>> I am using I really don't know anything about tiff files and how they are<br>
>>> used by itk<br>
>>><br>
>>><br>
>>> On Tue, May 20, 2014 at 11:43 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Also, if you build ITK, did you use cmake to configure the build?<br>
>>>><br>
>>>><br>
>>>> On Tue, May 20, 2014 at 1:42 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>>>> wrote:<br>
>>>> > I can read the file.<br>
>>>> ><br>
>>>> > Are you building ITK yourself. If so, are you using a system tiff<br>
>>>> > library?<br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > On Tue, May 20, 2014 at 1:04 PM, Scott Pfeifer<br>
>>>> > <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>> wrote:<br>
>>>> >><br>
>>>> >><br>
>>>> >><br>
>>>> >> On Tue, May 20, 2014 at 10:27 AM, Bill Lorensen<br>
>>>> >> <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>>>> >> wrote:<br>
>>>> >>><br>
>>>> >>> Very strange... Is you file small enough that you can email it to me<br>
>>>> >>> or provide a pointer wher I can download it?<br>
>>>> >>><br>
>>>> >>> Bill<br>
>>>> >>><br>
>>>> >>><br>
>>>> >>> On Tue, May 20, 2014 at 11:58 AM, Scott Pfeifer<br>
>>>> >>> <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>><br>
>>>> >>> wrote:<br>
>>>> >>> > int main()<br>
>>>> >>> ><br>
>>>> >>> > {<br>
>>>> >>> ><br>
>>>> >>> > typedef itk::Image<short,3> S163DImage;<br>
>>>> >>> ><br>
>>>> >>> > typedef itk::ImageFileReader<S163DImage> ReaderType;<br>
>>>> >>> ><br>
>>>> >>> ><br>
>>>> >>> > ReaderType::Pointer reader = ReaderType::New();<br>
>>>> >>> ><br>
>>>> >>> > reader->DebugOff();<br>
>>>> >>> ><br>
>>>> >>> > reader->SetGlobalWarningDisplay(false);<br>
>>>> >>> ><br>
>>>> >>> > reader->SetFileName("C:\\ImageInQestion.mhd");<br>
>>>> >>> ><br>
>>>> >>> > cout<<"about to read "<< imagePath <<" in compressor line<br>
>>>> >>> > 153"<<endl;<br>
>>>> >>> ><br>
>>>> >>> > reader->Update();<br>
>>>> >>> ><br>
>>>> >>> > cout<<"done with that compressor read"<<endl;<br>
>>>> >>> ><br>
>>>> >>> > return<br>
>>>> >>> ><br>
>>>> >>> > }<br>
>>>> >>> ><br>
>>>> >>> ><br>
>>>> >>> > I see a the bad magic number warning at reader->update()<br>
>>>> >>> ><br>
>>>> >>> ><br>
>>>> >>> ><br>
>>>> >>> > On Mon, May 19, 2014 at 4:33 PM, Bill Lorensen<br>
>>>> >>> > <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>>>> >>> > wrote:<br>
>>>> >>> >><br>
>>>> >>> >> Can you provide a small, compilable example that illustrates the<br>
>>>> >>> >> problem?<br>
>>>> >>> >><br>
>>>> >>> >> On May 19, 2014 6:25 PM, "Scott Pfeifer"<br>
>>>> >>> >> <<a href="mailto:scottfivefour@gmail.com">scottfivefour@gmail.com</a>><br>
>>>> >>> >> wrote:<br>
>>>> >>> >>><br>
>>>> >>> >>> Hello all,<br>
>>>> >>> >>> I am getting a strange error when reading an mhd file. The<br>
>>>> >>> >>> error is<br>
>>>> >>> >>> Not a TIFF file, bad magic number 25167.<br>
>>>> >>> >>><br>
>>>> >>> >>> I do not know much about tiff files but I have no idea why I am<br>
>>>> >>> >>> getting<br>
>>>> >>> >>> this error message from a mhd read. I believe I have the io<br>
>>>> >>> >>> factory<br>
>>>> >>> >>> being<br>
>>>> >>> >>> compiled in correctly. What is especially frustrating with this<br>
>>>> >>> >>> problem is<br>
>>>> >>> >>> that it is inconsistent when it happens. If there is any more<br>
>>>> >>> >>> information I<br>
>>>> >>> >>> can provide which would be helpful, please let me know and I'll<br>
>>>> >>> >>> provide it<br>
>>>> >>> >>> as soon as possible.<br>
>>>> >>> >>><br>
>>>> >>> >>> Version ITK 4.5.2<br>
>>>> >>> >>> Architecture - Windows 7 x64<br>
>>>> >>> >>><br>
>>>> >>> >>> _____________________________________<br>
>>>> >>> >>> Powered by <a href="http://www.kitware.com" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>>> >>> >>><br>
>>>> >>> >>> Follow this link to subscribe/unsubscribe:<br>
>>>> >>> >>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>>> >>> >>><br>
>>>> >>> ><br>
>>>> >>><br>
>>>> >>><br>
>>>> >>><br>
>>>> >>> --<br>
>>>> >>> Unpaid intern in BillsBasement at noware dot com<br>
>>>> >><br>
>>>> >><br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > --<br>
>>>> > Unpaid intern in BillsBasement at noware dot com<br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Unpaid intern in BillsBasement at noware dot com<br>
>>><br>
>>><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>