[ITK-users] Image spacing

Dženan Zukić dzenanz at gmail.com
Tue Jul 26 09:15:06 EDT 2016


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/insight-users/attachments/20160726/7ec44038/attachment.html>


More information about the Insight-users mailing list