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