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
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.
4 | No.4 Revision |
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.
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