[Rtk-users] Python wrapping for 4DROOSTER

Simon Rit simon.rit at creatis.insa-lyon.fr
Tue Dec 12 16:25:57 CET 2023


Hi,
Thanks for trying! I would guess that you also need to wrap
TotalVariationDenoiseSequenceImageFilter?
Simon

On Tue, Dec 12, 2023 at 4:16 PM Valentin Hamaide <
Valentin.Hamaide at iba-group.com> wrote:

> Hi,
>
>
>
> I am having some trouble with the FourDROOSTERConeBeamReconstructionFilter
> wrap file.
>
> I tried to adapt it similarly to
> rtkFourDConjugateGradientConeBeamReconstructionFilter (as attached) but
> without success.
>
>
>
> I get the following error message:
>
> Severity
>
> Code
>
> Description
>
> Project
>
> File
>
> Line
>
> Suppression State
>
> Error
>
> C2665
>
> 'itk::ImageToImageFilter<TInputImage,TOutputImage>::SetInput': no
> overloaded function could convert all the argument types
>
> RTKPython
>
>
> C:\Users\valentin.hamaide\itk-rtk\src\Modules\Remote\RTK\include\rtkTotalVariationDenoiseSequenceImageFilter.hxx
>
> 38
>
>
>
> Error
>
> C2665
>
> 'itk::ImageToImageFilter<TInputImage,TOutputImage>::SetInput': no
> overloaded function could convert all the argument types
>
> RTKPython
>
>
> C:\Users\valentin.hamaide\itk-rtk\src\Modules\Remote\RTK\include\rtkTotalVariationDenoiseSequenceImageFilter.hxx
>
> 39
>
>
>
>
>
> Any idea how to solve this ?
>
>
>
> Best,
>
> Valentin
>
>
>
> *From:* Simon Rit <simon.rit at creatis.insa-lyon.fr>
> *Sent:* Friday, December 8, 2023 10:28 AM
> *To:* Valentin Hamaide <Valentin.Hamaide at iba-group.com>
> *Cc:* rtk-users at openrtk.org
> *Subject:* Re: [Rtk-users] Python wrapping for 4DROOSTER
>
>
>
> Hi,
>
> You can check ITK guidelines
> https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch9.html
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__itk.org_ITKSoftwareGuide_html_Book1_ITKSoftwareGuide-2DBook1ch9.html&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=QBZMRacy5xgIfg8qNKXRk63XP4TjIZcbF_0IESYIH4U&m=tBoQfsTM-qljtzF-q5MrK9vcmoV6EWJwcIZwX9xjFK5krrhPSw7JoPB2NmF81m0o&s=BSCOGe26ehh5l6gG92FA3xsqwWHUZMvHPKm-IiVxnDg&e=>
> section 9.5.
>
> It can be pretty straightforward. But there are quite often subtleties.
> The basic idea: create one .wrap file with the same name as the header file
> of the filter and implement it following existing examples, e.g.
>
>
> https://github.com/RTKConsortium/RTK/blob/master/wrapping/rtkFourDConjugateGradientConeBeamReconstructionFilter.wrap
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_RTKConsortium_RTK_blob_master_wrapping_rtkFourDConjugateGradientConeBeamReconstructionFilter.wrap&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=QBZMRacy5xgIfg8qNKXRk63XP4TjIZcbF_0IESYIH4U&m=tBoQfsTM-qljtzF-q5MrK9vcmoV6EWJwcIZwX9xjFK5krrhPSw7JoPB2NmF81m0o&s=J4qvHjkEXrgW6Uj7MBQYePTSGu7fFraoyySI3KVenqg&e=>
>
> You can let the CI compile by creating a pull request or try to compile it
> locally by activating python wrapping in ITK.
>
> I can try to do it for you if it does not work quickly for you.
>
> Simon
>
>
>
>
>
> On Thu, Dec 7, 2023 at 5:47 PM Valentin Hamaide <
> Valentin.Hamaide at iba-group.com> wrote:
>
> Hello,
>
>
>
> I am currently using RTK with Python wrappings.
>
> I wanted to try the FourDROOSTERConeBeamReconstructionFilter but I see
> that there are no python wrappings.
>
> How can I generate this python wrapping? Are there some guidelines
> somewhere on how to do this?
>
>
>
> Best,
>
> Valentin
>
> _______________________________________________
> Rtk-users mailing list
> rtk-users at openrtk.org
> https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.creatis.insa-2Dlyon.fr_mailman_listinfo_rtk-2Dusers&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=QBZMRacy5xgIfg8qNKXRk63XP4TjIZcbF_0IESYIH4U&m=tBoQfsTM-qljtzF-q5MrK9vcmoV6EWJwcIZwX9xjFK5krrhPSw7JoPB2NmF81m0o&s=t2yp6IwMLE4fNksVAoTvrXgVg7CoAaMVkaZGdsT6mDQ&e=>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20231212/38720e84/attachment.htm>


More information about the Rtk-users mailing list