[Insight-users] problem allocating an image

john smith mkitkinsightuser at gmail.com
Thu Jun 16 03:56:45 EDT 2011


I have made this change InputImageType::Pointer image_norm =
InputImageType::New();, but now my program seems to get in the loop but
cannot get out of this loop. What I am doing wrong?

2011/6/16 robert tamburo <robert.tamburo at gmail.com>

> Change
>
> InputImageType::Pointer image_norm;
>
> to
>
> InputImageType::Pointer image_norm = InputImageType::New();
>
>
> On Wed, Jun 15, 2011 at 9:03 PM, john smith <mkitkinsightuser at gmail.com>wrote:
>
>> size_x,size_y,size_z are global variables of my program.I run the above
>> code with a mouse press event of Qt and is included in a mouse press
>> function.Also,
>>
>>   typedef float              InputPixelType;
>>   const   unsigned int        Dimension = 3;
>>   typedef itk::Image< InputPixelType,  Dimension >    InputImageType;
>>
>> where
>> size_x=137
>> size_y=167
>> size_z=139
>>
>> 2011/6/16 David Doria <daviddoria at gmail.com>
>>
>>> On Wed, Jun 15, 2011 at 7:48 PM, David Doria <daviddoria at gmail.com>wrote:
>>>
>>>> On Wed, Jun 15, 2011 at 7:39 PM, john smith <mkitkinsightuser at gmail.com
>>>> > wrote:
>>>>
>>>>> Well I have fixed the copy paste bug but still I get an exception.I
>>>>> have done the same think using the iterator, but still I want to solve the
>>>>> problem in that way if somebody could help me. When I debug my program the
>>>>> breakpoint is stucked to this point of itkImage.h
>>>>>
>>>>>   void SetRegions(RegionType region)
>>>>>     {
>>>>>     this->SetLargestPossibleRegion(region);
>>>>>     this->SetBufferedRegion(region);
>>>>>     this->SetRequestedRegion(region);
>>>>>     };
>>>>>
>>>>> I hope someone could help
>>>>
>>>>
>>> With things this small, I suggest posting compilable examples. What is
>>> size_x, size_y, etc?
>>>
>>> David
>>>
>>>
>>> _____________________________________
>>> 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.html
>>>
>>> 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
>>>
>>>
>>
>> _____________________________________
>> 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.html
>>
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110616/f72a9e75/attachment.htm>


More information about the Insight-users mailing list