Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 5 articles
Browse latest View live

Answer by StevenPuttemans for I was trying to draw a gradient image with...

To illustrate @Spas Hristov his asnwer, here is some sample code on how to calculate gradient images. void calculateGradientImage(Mat inputImage, Mat outputImage, Size kernelSize, int sigma){ Mat...

View Article



Answer by Spas Hristov for I was trying to draw a gradient image with...

For gradient image see sobel functions: http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/sobel_derivatives/sobel_derivatives.html

View Article

Comment by benzwt for I was trying to draw a gradient image with opencv's...

thanks for the reply. But there is some mis-understanding, the gradient image I mentioned is some kind of gimp style gradient image. Please kindly check the code above. thanks!

View Article

Comment by Daniil Osokin for I was trying to draw a gradient image with...

What do you mean by wrong result? I've run your code and have image with horizontal gradient. BTW, instead of "img.data + i*img.step[0]" you can use "img.row(i) .data".

View Article

how do I draw a gradient image with internal data structure(step) of opencv

I was trying to draw a gradient image with opencv's step But the result was wrong. Could someone give me some hints ? thanks! #include #include #include using namespace cv; using namespace std; int...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images