[Insight-users] How to create an image whose pixels are, accessed via a function call

Daniel Faken dfaken at coventor.com
Fri Oct 31 13:53:15 EDT 2008


Carlos,

  See the recent message by Dan Mueller for some of his code to do what Bill L. is suggesting.
  The message subject is '"Image Adaptor" for compressed/non-itk::Image	object <http://www.itk.org/pipermail/insight-users/2008-October/027782.html>'.

regards,
Daniel Faken

Bill Lorensen wrote:
> Carlos,
>
> There is currently not a class in itk to do this. However, you could
> implement a subclass of ImageBase to do what you want. Look at
> itkImageAdaptor to see what methods need to be implemented.
>
> Bill
>
> On Fri, Oct 31, 2008 at 7:17 AM, Carlos S?nchez Mendoza
> <carlos.sanchez.mendoza at gmail.com> wrote:
>> > Dear all,
>> >
>> > I'd love to receive any kind of advice on the following issue:
>> >
>> > I have access to some image data via calls to a function (passing the
>> > coordinates of every pixel as a parameter). Although stepping through the
>> > whole input image and storing it in a custom created image object could do
>> > the job, I'd like not to duplicate resources. That's why I am looking for a
>> > way to create an image whose pixels are evaluated via a function call, is
>> > that possible (not from scratch)?
>> >
>> > Thanks in advance.
>> >
>> > Carlos S. Mendoza.
>> > Universidad de Sevilla.



More information about the Insight-users mailing list