Ask Your Question
0

what is the correct data type mat.forEach<Vec3b>(Operator());

asked 2018-09-18 05:19:04 -0600

nobot gravatar image

if for 3-channel of

type int I am using vec3b ->mat.forEach<vec3b>(Operator()),

what should I use for float type ->mat.forEach<???>(Operator())

CV_8UC3 -> cv::Vec3b
CV_32FC3 -> ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-09-18 05:21:55 -0600

berak gravatar image

have a look at the docs there is Vec3f for this.

edit flag offensive delete link more

Comments

yes , Indeed it worked. thanks !!

nobot gravatar imagenobot ( 2018-09-18 06:39:24 -0600 )edit

@nobot -- make sure you mark the answer as correct, by clicking on the checkmark. Also, you might want to give it an up vote too, while you're at it. :)

sjhalayka gravatar imagesjhalayka ( 2018-09-18 10:04:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-09-18 05:19:04 -0600

Seen: 336 times

Last updated: Sep 18 '18