Iop::sample() is basically intended for texture sampling, so it's not designed 
to be used on a single Row, it needs a rectangular input region.  If you're 
trying to convolve the pixels on a single output row then you access the Row's 
float data directly.

Look at the way that Dilate.cpp's engine method iterates across the Row.

-jonathan

On Sep 23, 2011, at 1:40 PM, sman77 wrote:

> Thanks jonathan,
> 
> I have manged to process each row as shown in these examples. The bit I am 
> stuck on is applying the sample function on pixels I have already modifyed 
> during the same pass. This is because the sample function only works on the 
> input image ie input0.sample(...)
> 
> Is there a way of using the sample function on the out Row?
> 
> ie
> Pixel pixel(channels);
> out.sample(centre, uVector,vVector,pixel)
> foreach ( z, channels )
> ((float*)(out[z]))[x] = pixel[z];
> _______________________________________________
> Nuke-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to