Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

find the edge of image with the help of axis(x,y) in opencv in android

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;

find the edge of image with the help of axis(x,y) in opencv in android

I want have to color the object . when it touched. For that follow the some basic concepts: I am using following concept: If i touch the am getting coordinates of that portion where object then i is touched. After that I have to 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 the edges of touched object. Then fill 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,yof that object. here I get the coordinates of touched portion

int cols = mRgba.cols(); int rows = mRgba.rows(); mRgba.rows();

int xOffset = (mOpenCvCameraView.getWidth() - cols) / 2; int yOffset = (mOpenCvCameraView.getHeight() - rows) / 2; 2;

int x = (int)event.getX() - xOffset; int y = (int)event.getY() - yOffset;

yOffset;

x,y shows the coordinates of the touched portion but problem is to find the corners of object. For corners i use canny() method of opencv But no idea how to implement it by coding in opencv in android.

find the edge of image with the help of axis(x,y) in opencv in android

I have to color the object when it touched. For that follow the some basic concepts: I am getting coordinates of that portion where object is touched. After that I have to find the edges of touched object. Then fill color of that object. here I get the coordinates of touched portion

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;

x,y shows the coordinates of the touched portion but problem is to find the corners of object. For corners i use canny() method of opencv But no idea how to implement it by coding in opencv in android.

find the edge of image with the help of axis(x,y) in opencv in android

I have to color the object when it touched. For that follow the some basic concepts: I am getting coordinates of that portion where object is touched. After that I have to find the edges of touched object. Then fill color of that object. here I get the coordinates of touched portionportion.

int cols = mRgba.cols();
int rows = mRgba.rows();

mRgba.rows(); int xOffset = (mOpenCvCameraView.getWidth() - cols) / 2; int yOffset = (mOpenCvCameraView.getHeight() - rows) / 2;

2; int x = (int)event.getX() - xOffset; int y = (int)event.getY() - yOffset;

yOffset;

x,y shows the coordinates of the touched portion but problem is to find the corners of object. For corners i use canny() method of opencv But no idea how to implement it by coding in opencv in android.