I have a plugin that tries to access  specific DeepPixels, but I'm
getting constant crashes. To illustrate the problem, I'm using as an
example the source code for DeepCrop.

If I replace the following line:
DeepPixel pixel = inPlane.getPixel(it)

For:
DeepPixel pixel = inPlane.getPixel(it.x,it.y)

It crashes everytime. Any idea what I could be doing (or
understanding) incorrectly?

from DeepPlane.h:

      DeepPixel getPixel(int y, int x) const;

      /*
       * get the DeepPixel at the given coordinates
       */
      DeepPixel getPixel(DD::Image::Box::iterator it) const
      {
        return getPixel(it.y, it.x);
      }

Seems like I should be getting the same result... Thanks for your help
in advance!


-- 
Jose Fernandez de Castro
_______________________________________________
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