Ask Your Question
0

define ROI around an object

asked 2013-12-13 04:46:30 -0600

mahsa gravatar image

How do I grow edge boundaries?

edit retag flag offensive close merge delete

Comments

Why don't you give us a little more details about what you've got, otherwise I've got to simply tell you that you gotta implement it yourself.

mrzl gravatar imagemrzl ( 2013-12-13 11:12:54 -0600 )edit

What I mean is that I want to grow edge boundaries 2 pixel (for example) in each side...assume that you have the shape of the object, how you create the same shape but with wider boundaries around it?

mahsa gravatar imagemahsa ( 2013-12-14 03:11:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-12-13 15:07:52 -0600

amin.karimi gravatar image

in c++ u can write like this

Mat image// and add a image to your program

Rect ROI = Rect(x,y,width,height);

Mat image_ROI =image(ROI);

edit flag offensive delete link more

Comments

thanks but what you explaned is not what i meant...if I have the shape of the object, how do I creat the same shape around it(but with wider boundaries)?

mahsa gravatar imagemahsa ( 2013-12-14 03:12:56 -0600 )edit

well your explain about what you want were very ambiguous now i think u want contour around things so u can go this site and there are good information about contour

http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html

amin.karimi gravatar imageamin.karimi ( 2013-12-14 10:46:18 -0600 )edit

Question Tools

Stats

Asked: 2013-12-13 04:46:30 -0600

Seen: 512 times

Last updated: Dec 13 '13