[Rtk-users] how to draw geometric phantom in RTK?

Simon Rit simon.rit at creatis.insa-lyon.fr
Fri Jun 7 01:40:02 EDT 2019


Hi,
The sampling grid is defined on the command line, see
rtkdrawgeometricphantom -h:
Output 3D image properties:
      --origin=DOUBLE        Origin (default=centered)
      --dimension=INT        Dimension  (default=`256')
      --spacing=DOUBLE       Spacing  (default=`1')
      --direction=DOUBLE     Direction
To complete Aurélien's answer, you can also use the forbild file format,
which is well documented here
<http://www.imp.uni-erlangen.de/forbild/english/results/index.htm>, using
the flag --forbild. The format that Aurélien described still needs a proper
doc.
Simon

On Thu, Jun 6, 2019 at 4:20 PM Jianbing <dongjbstrong at 163.com> wrote:

> Thanks for your reply, that is very helpful.
> There is anthor problem bothing me:
> how to determine the voxel size and the data size on mhd file? Using
> GeometricPhantom.txt, the mhd data has dimensions of 256 * 256 * 256, I
> could not figure out where the '256' is coming from?
>
> At 2019-06-06 21:16:04, "Aurélien Coussat" <
> aurelien.coussat at creatis.insa-lyon.fr> wrote:
>
> Hi,
>
> As far as I understand it, the text file accepts all geometries shown in
> https://en.wikipedia.org/wiki/Quadric, except parabolic cylinder and
> paraboloid family (as detailed in the last line of
> http://wiki.openrtk.org/index.php/RTK/Scripts/DrawGeometricPhantom
> <http://wiki.openrtk.org/index.php/RTK/Scripts/DrawGeometricPhantomà>).
> The parameters x, y and z refer to the position of the quadric in the
> space, while a, b and c refer to its size in each of the dimension,
> respectively. The parameter beta refers to its rotation. The parameter
> "gray" refers to the value of your phantom within the quadric. Note that
> gray values add up: for instance if you want a sphere whose value is 2
> within a bigger sphere whose value is one, both of them should have the
> parameter "gray" set to one.
>
> Hope that this is clearer now!
>
> Aurélien.
>
> On Wed, 2019-06-05 at 16:46 +0800, Jianbing wrote:
>
> Hi:
>         I want to use RTK to draw a geometric phantom. But the only thing
> I could find is <RTK/Scripts/DrawGeometricPhantom
> <http://wiki.openrtk.org/index.php/RTK/Scripts/DrawGeometricPhantom>>,
> and there is only a simple txt file. I could not find any document about
> how to draw a geometric phantom with such command, what is the meaning of
> each parameters in the txt file?
>
> rtkdrawgeometricphantom --phantomfile GeometricPhantom.txt -o newPhantom.mha
>
>        Furthermore, what documents shoud I refer to to modify these
> parameters in order to generate my own phantom?
>        Thanks in advance.
>
>
>
>
> _______________________________________________
> Rtk-users mailing listRtk-users at public.kitware.comhttps://public.kitware.com/mailman/listinfo/rtk-users
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20190607/38311052/attachment.html>


More information about the Rtk-users mailing list