Hi,

A question that then comes to my mind : why do you pass the image as parameter ? Passing it as input, you would benefit from the pipeline features, such as making your output outdated when you modify your input binary mask, or loading of only the required part of your binary mask, ... Did you try it, and it didn't work ? I can help you do it this way if you need.

Cyril

On 06/17/2016 06:46 PM, Simon Rit wrote:
Hi Fabien,
I can't say I master this but I had to do something similar in FieldOfViewImageFilter.json <https://github.com/SimonRit/RTK/blob/master/utilities/SimpleRTK/Code/BasicFilters/json/FieldOfViewImageFilter.json>. Look at the "ProjectionsStack" parameter which is actually a 3D image. How did I come up with such a complicated code? No clue, but SimpleITK has similar ugly json files, e.g., LabelMapContourOverlayImageFilter.json <https://github.com/SimpleITK/SimpleITK/blob/master/Code/BasicFilters/json/LabelMapContourOverlayImageFilter.json>. My guess is that passing an image as a parameters in an itk image filter is not so common...
I hope this helps,
Simon

On Fri, Jun 17, 2016 at 11:07 AM, Fabien Momey <[email protected] <mailto:[email protected]>> wrote:

    Hi everyone,

    I need some help for updating a JSON file for the
    ConjugateGradientConeBeamReconstructionFilter.

    I want to test a new implementation I made on this filter to
    perform a support constraint for the reconstructed image.

    The constraint consists in a binary mask passed as an attribute.
    This attribute is a pointer to an image of type TOutputImage. The
    default value (in the constructor) is NULL.

    I don't know how to write it in the JSON file to wrap this member :

     {
          "name" : "SupportMask",
          "type" : ?,
          "default" : ?,
          "briefdescriptionSet" : "",
          "detaileddescriptionSet" : "",
          "briefdescriptionGet" : "",
          "detaileddescriptionGet" : ""
       }

    Does it also need to perform a specific cast with the optional
    field custom_itk_cast ? I don't really understand how it works.

    Thanks in advance for your help.

    _______________________________________________
    Rtk-users mailing list
    [email protected] <mailto:[email protected]>
    http://public.kitware.com/mailman/listinfo/rtk-users




_______________________________________________
Rtk-users mailing list
[email protected]
http://public.kitware.com/mailman/listinfo/rtk-users

_______________________________________________
Rtk-users mailing list
[email protected]
http://public.kitware.com/mailman/listinfo/rtk-users

Reply via email to