[ITK-users] Strange error when reading an mhd file
Bill Lorensen
bill.lorensen at gmail.com
Tue May 20 13:43:28 EDT 2014
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
More information about the Insight-users
mailing list