Nuke BlinkScript: Why does the convolution kernel scale down the image?

48 Views Asked by At

The access pattern argument eAccessRanged2D is causing the image to be "scaled down" from 1920 x 1080 to roughly around 960 x 540. The code is written for Blinkscript Nuke application. All the code is doing is passing src to dst without any modification?

kernel Halation_kernel : ImageComputationKernel<ePixelWise> {
Image<eRead, eAccessRanged2D, eEdgeClamped> src;
Image<eWrite, eAccessPoint> dst;

void process(int2 pos) {
    dst() = src(pos.x, pos.y);

}

I tried setting Image<eWrite, eAccessRanged2d> dst; and dst (pos.x, pos.y) = src(pos.x, pos.y) which fixed the scaling issue, but changed the color of the whole image.

Scaling issue:

enter image description here

Color issue after changing dst to eRangedAccess: enter image description here

0

There are 0 best solutions below