Giter VIP home page Giter VIP logo

Comments (4)

T4mmi avatar T4mmi commented on September 22, 2024 1

wow, indeed that makes sense. I totaly missed that line !
thanks a lot, I'll try to make it compile ;)

from itkthickness3d.

T4mmi avatar T4mmi commented on September 22, 2024 1

Thanks I managed to do it for the wrapping !
Indeed the errors did not seem related to wrapping... got a bit confused as backtrace are not always so descriptive

from itkthickness3d.

T4mmi avatar T4mmi commented on September 22, 2024

Hi again, I've been running some tests and it seems that most of my troubles comes from the templates management...

How to "force" (more like control) the TInputImage and TInputImage with an ImageToImageFilter ?

template <class TInputImage, class TOutputImage>
public ImageToImageFilter<TInputImage, TOutputImage>

And what about the ensuing python wrapping ?

Should we write the C-code without restrictions and 'control' ImageTypes with the wrapping macro ?
when I try:

  UNIQUE(wrap_image_types "${WRAP_ITK_SCALAR};UC")
  foreach(type ${wrap_image_types})
    itk_wrap_image_filter_combinations("${type}" "UC" 3)
  endforeach()

I end up with errors such as ITKs/Modules/Core/Common/include/itkConceptChecking.h:571:32: error: no viable conversion from 'UniqueType<unsigned char>' to 'UniqueType<short>'?

from itkthickness3d.

thewtex avatar thewtex commented on September 22, 2024

It depends on the specific issue...

Is there more of the backtrace for the error ITKs/Modules/Core/Common/include/itkConceptChecking.h:571:32: error: no viable conversion from 'UniqueType<unsigned char>' to 'UniqueType<short>'. That is, which instantiation is causing this issue?

The wrapping macros allow wrapping an ImageToImageFilter with the same pixel type and dimension (a common use case). itk_wrap_image_filter_combinations allows wrapping with different types of input and output images. The itk_wrap_template macro allows wrapping any class (not just an ImageToImageFilter) with specification of all types.

from itkthickness3d.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.