[Rtk-users] Python wrapping for 4DROOSTER

Valentin Hamaide Valentin.Hamaide at iba-group.com
Tue Dec 12 16:14:27 CET 2023


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<mailto: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<mailto: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/ab3836fc/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtkFourDROOSTERConeBeamReconstructionFilter.wrap
Type: application/octet-stream
Size: 402 bytes
Desc: rtkFourDROOSTERConeBeamReconstructionFilter.wrap
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20231212/ab3836fc/attachment-0001.obj>


More information about the Rtk-users mailing list