Ask Your Question
0

Shouldn't Mat::copyTo be documented with the type of mask?

asked 2015-10-12 06:30:16 -0600

thdrksdfthmn gravatar image

updated 2015-10-12 06:30:56 -0600

I have just found that the mask in the Mat::copyTo() function should be of type CV_8U, with one or more channels (the same as this):

// opencv/modules/src/copy.cpp: lines 270 and 271
int cn = channels(), mcn = mask.channels();
CV_Assert( mask.depth() == CV_8U && (mcn == 1 || mcn == cn) );

and that this information is not mentioned in the docs2.4.11, nor the docs3.0.0

Shouldn't it be added in some place? Or is there somewhere a remark like the mask should be of type/depth CV_8U, that I have missed?

Maybe there are some other mask parameters that need to be documented with this remark, too...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-13 07:27:59 -0600

PR for master: https://github.com/Itseez/opencv/pull... PR for 2.4: https://github.com/Itseez/opencv/pull...

IF you have any remarks, do let me know!

edit flag offensive delete link more

Comments

Both PR's were just merged!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-22 07:29:40 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-12 06:30:16 -0600

Seen: 499 times

Last updated: Oct 13 '15