Skip to main content

[JAI] How best to share computation buffers between OpImages

1 reply [Last post]
Anonymous

I've decided to decompose a couple of processing steps into separate
OpImages, but I need the second Op in the chain to gain access to a
computation buffer that was populated during the first Op. I'm about to
tunnel the data out from the first Op by adding a new band into the dest
image, but it feels like a bit of a hack. Any better ways to do this?

Thanks,

Jason.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Bob Deen

>I've decided to decompose a couple of processing steps into separate
>OpImages, but I need the second Op in the chain to gain access to a
>computation buffer that was populated during the first Op. I'm about to
>tunnel the data out from the first Op by adding a new band into the dest
>image, but it feels like a bit of a hack. Any better ways to do this?

Attach it to the image as a metadata Property object, which the second op can
then retrieve. Histogram does this for example (except in that case, the
returned property is the entire purpose of the op, instead of ancillary
info, but the same idea applies).

-Bob Deen @ NASA-JPL Multimission Image Processing Lab
Bob.Deen@jpl.nasa.gov

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net