1 | initial version |
//Scharr( src_gray, grad_x, ddepth, 1, 0, scale, delta, BORDER_DEFAULT ); Sobel( src_gray, grad_x, ddepth, 1 , 0 , 3 , scale, delta, BORDER_DEFAULT ); convertScaleAbs( grad_x, abs_grad_x ); /// Gradient Y //Scharr( src_gray, grad_y, ddepth, 0, 1, scale, delta, BORDER_DEFAULT ); Sobel( src_gray, grad_y, ddepth, 0 , 1 , 3 , scale, delta, BORDER_DEFAULT ); convertScaleAbs( grad_y, abs_grad_y ); subtract(abs_grad_x, abs_grad_y, yourmask);
not sure ..... but now you have or xline mask or yline mask ...... your work now is subtract tese mask from your image......
2 | No.2 Revision |
//Scharr( [code]//Scharr( src_gray, grad_x, ddepth, 1, 0, scale, delta, BORDER_DEFAULT );
Sobel( src_gray, grad_x, ddepth, 1 , 0 , 3 , scale, delta, BORDER_DEFAULT );
convertScaleAbs( grad_x, abs_grad_x );
/// Gradient Y
//Scharr( src_gray, grad_y, ddepth, 0, 1, scale, delta, BORDER_DEFAULT );
Sobel( src_gray, grad_y, ddepth, 0 , 1 , 3 , scale, delta, BORDER_DEFAULT );
convertScaleAbs( grad_y, abs_grad_y );
subtract(abs_grad_x, abs_grad_y, yourmask);yourmask);[/code]
not sure ..... but now you have or xline mask or yline mask ...... your work now is subtract tese mask from your image......
3 | No.3 Revision |
[code]//Scharr(
//Scharr(
src_gray, grad_x, ddepth, 1, 0, scale, delta, BORDER_DEFAULT );
Sobel( src_gray, grad_x, ddepth, 1 , 0 , 3 , scale, delta, BORDER_DEFAULT );
convertScaleAbs( grad_x, abs_grad_x );
/// Gradient Y
//Scharr( src_gray, grad_y, ddepth, 0, 1, scale, delta, BORDER_DEFAULT );
Sobel( src_gray, grad_y, ddepth, 0 , 1 , 3 , scale, delta, BORDER_DEFAULT );
convertScaleAbs( grad_y, abs_grad_y );
subtract(abs_grad_x, abs_grad_y, not sure ..... but now you have or xline mask or yline mask ...... your work now is subtract tese mask from your image......