[Insight-users] Check image bounds

smrolfe at u.washington.edu smrolfe at u.washington.edu
Thu Nov 1 14:33:56 EDT 2012


Yes, that's exactly what I was looking for.

Thanks!
Sara

On Thu, 1 Nov 2012, David Doria wrote:

> I believe you want image->GetOrigin?
>
> http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#a4687b4082eea49600bd05b8d64488661
>
> See if that returns the values you're looking for (I think origin[0]
> should be 25 in this case).
>
> David
>
>
> On Thu, Nov 1, 2012 at 2:15 PM,  <smrolfe at u.washington.edu> wrote:
>> Sure, when I view the image in Paraview I can see that the X range is 25 to
>> 203, while the X extent is 0 to 178.  The extent is the information I get
>> from GetSize().  I was wondering if there was a way to see the range.
>>
>> I realized that I don't need this for the task I was working on, but am
>> still interested for future reference.
>>
>> Thanks,
>> Sara
>>
>>
>>
>> On Thu, 1 Nov 2012, David Doria wrote:
>>
>>> Can you explain what you mean by "the range" and "the delta"?
>>>
>>> David
>>>
>>>
>>> On Thu, Nov 1, 2012 at 1:52 PM,  <smrolfe at u.washington.edu> wrote:
>>>> Hello,
>>>>
>>>> I've run into a problem that should have a simple solution.  I would
>>>> like to
>>>> check the range of an image size, rather than just the delta, using
>>>> GetSize().  Is there an easy way to do this that I've missed?
>>>>
>>>> Thanks,
>>>> Sara
>>>>
>>>> _____________________________________
>>>> 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 Insight-users mailing list