I want to color the object . I am using following concept: If i touch the object then i find the axis(x,y) of touch image. If i touch the object then i find the axis(x,y) of touch image. i want to find that object border. then i want color the object on the basis of edge. how to find the edge of from axis. how to find the edge of from axis.
finding the axis x,y
int cols = mRgba.cols();
int rows = mRgba.rows();
int xOffset = (mOpenCvCameraView.getWidth() - cols) / 2;
int yOffset = (mOpenCvCameraView.getHeight() - rows) / 2;
int x = (int)event.getX() - xOffset;
int y = (int)event.getY() - yOffset;