How to specify a color using Scalar class [closed]
I do not know how to specifiy a color using Scalar class in the below posted method?
Features2d.drawKeypoints(mKeyPoints_0, mKeyPoints_0, outImage, Scalar color, Features2d.DRAW_RICH_KEYPOINTS);
new Scalar(200,0,0) ?
Features2d.drawKeypoints(mKeyPoints_0, mKeyPoints_0, outImage, Scalar(200,0,0), Features2d.DRAW_RICH_KEYPOINTS);
should do it, like @berak said. I do not think the new is actually needed.^^ java needs it.
(there's no way to create something on the 'stack' there, so new Point(), new Scalar() new Mat(), etc)
@steven i think @berak is right, i tried to use Scalar(..) without the new operator and it is not allowed
O to bad :D
java stiffness :-p....