Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

have a look at the docs , you're setting alpha to 0, no wonder, it's all black.

(i guess, you only swapped alpha and beta params here) . instead try:

normalize(kernelXY, kernelXY, 255,0); // it probably needs a much smaller alpha factor

have a look at the docs , you're setting alpha to 0, no wonder, it's all black.

(i guess, you only swapped alpha and beta params here) . instead try:

normalize(kernelXY, kernelXY, 255,0); // 255,0);

it probably needs a much smaller alpha factor factor, 16 looks perfect to me.

have a look at the docs , you're setting alpha to 0, no wonder, it's all black.

(i guess, you only swapped alpha and beta params here) . instead try:

normalize(kernelXY, kernelXY, 255,0);

it probably even needs a much smaller alpha factor, 16 looks perfect to me.

have a look at the docs , you're setting alpha to 0, no wonder, it's all black.

(i guess, you only swapped alpha and beta params here) . instead try:

normalize(kernelXY, kernelXY, 255,0);

it probably even needs a much smaller alpha factor, 16 looks perfect to me.

edit:

it looks like you want NORM_MINMAX instead of NORM_L2 (the default) here:

    normalize(kernelXY, kernelXY, 1, 0,NORM_MINMAX);

also, you do not need any alpha then, imshow() can handle [0..1] ranges pretty well

image description