[ITK] [ITK-users] Image spacing
Dženan Zukić
dzenanz at gmail.com
Wed Jul 27 14:37:34 EDT 2016
That depends on you image. Try this
<https://itk.org/ITKExamples/src/Filtering/ImageGrid/ChangeImageOriginSpacingOrDirection/Documentation.html>
example with your image.
Regards
On Wed, Jul 27, 2016 at 1:27 PM, meikolin saimara <kolin9105 at gmail.com>
wrote:
> what is the value of sp[0 ] and sp[1] sir??
>
> On Tue, Jul 26, 2016 at 8:15 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
>
>> Hi Meikolin,
>>
>> sp is a ImageType::SpacingType variable which is assigned on the line
>> before.
>>
>> If you couldn't deduce that, you should really try going through ITK
>> software guide <https://itk.org/ItkSoftwareGuide.pdf>. Spacing is
>> described in chapter about data representation
>> <https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch4.html>,
>> section "Defining Origin and Spacing".
>>
>> Regards,
>> Dženan
>>
>> On Tue, Jul 26, 2016 at 4:21 AM, meikolin saimara <kolin9105 at gmail.com>
>> wrote:
>>
>>> what is sp [0] and sp [1] sir??
>>>
>>> On Mon, Jul 25, 2016 at 8:25 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
>>>
>>>> Hi Meikolin,
>>>>
>>>> you have image spacing, which gives you the size of one pixel/voxel:
>>>> sp=image->GetSpacing();
>>>> pixelSize=sp[0]*sp[1]; //square millimeters
>>>>
>>>> Regards,
>>>> Dženan
>>>>
>>>> On Mon, Jul 25, 2016 at 3:10 AM, meikolin saimara <kolin9105 at gmail.com>
>>>> wrote:
>>>>
>>>>> maybe one pixel = .......Square millimeters???
>>>>>
>>>>>
>>>>> On Mon, Jul 25, 2016 at 1:45 PM, meikolin saimara <kolin9105 at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> sir I have question ??
>>>>>> after we got number of pixel and large of the pixel...
>>>>>> I want to know how we can get the large of the pixel I mean the
>>>>>> formula for it not the source code
>>>>>> maybe can you give me some journal for it.
>>>>>>
>>>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160727/d2f03b8b/attachment.html>
-------------- next part --------------
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list