Ask Your Question
0

Part of picture

asked 2013-03-28 02:05:44 -0600

zhang13404 gravatar image

Through Imgproc.boundingRect I won a rect object, now how I interception based on rect part of the picture?

edit retag flag offensive close merge delete

Comments

Please be more specific. Your question is actually stating nothing :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-28 05:11:16 -0600 )edit

oh,sorry. i want to cut out part of the pictures according to the rect.Could you tell me opencv4android offer this way?

zhang13404 gravatar imagezhang13404 ( 2013-04-01 20:56:31 -0600 )edit

No need in posting your remark twice. However like guanta presented, this works for android also. Use that code!

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-02 02:38:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-28 03:30:06 -0600

Guanta gravatar image

What do you mean by interception here? What do you want to intercept? Your image-part you get via: cv::Mat image_part = your_image(your_rect);

edit flag offensive delete link more

Comments

i want to cut out part of the pictures according to the rect.Could you tell me opencv4android offer this way?

zhang13404 gravatar imagezhang13404 ( 2013-04-01 20:57:44 -0600 )edit

Should work exactly the same way. Define your rectangle and create a new matrix-header with that rectancle.

Guanta gravatar imageGuanta ( 2013-04-02 03:56:34 -0600 )edit

Question Tools

Stats

Asked: 2013-03-28 02:05:44 -0600

Seen: 175 times

Last updated: Mar 28 '13