← Back to team overview

dolfin team mailing list archive

[Fwd: Re: Image to Function data structure conversion]

 

> > Anders Logg wrote:
> > > How about adding ImageFunction to SpecialFunctions.h/cpp.
> > >
> > > It would require using the ITK C++ interface (I assume there is one),
> > > adding a check for ITK to the build system and a flag HAS_ITK.
> > >
> >
> > An ITK dependency sounds a bit specialised for DOLFIN to me. A good
> > candidate for a fenics-apps perhaps?
> >
> > Garth
>
> Yes maybe, but it would be fun to be able to do things like
>
> f = ImageFunction("dolfin.jpg")
>
> and use as a right-hand side.

I guess the data structure conversion will be much more comprehensive
than the discussed prototype sample for real world applications.
Having the itk-dolfin interface as a wrapitk module, and encapsulating
the itk dependencies as much as possible, would make life easier.
Don't forget that itk, and the family, are cmake-based, hopefully that
wouldn't be a problem for scons-oriented dolfin?


-Ali


Follow ups