Ask Your Question
0

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

asked Sep 18 '18

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 -> ?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Sep 18 '18

berak gravatar image

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

Preview: (hide)

Comments

yes , Indeed it worked. thanks !!

nobot gravatar imagenobot (Sep 18 '18)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 (Sep 18 '18)edit

Question Tools

1 follower

Stats

Asked: Sep 18 '18

Seen: 387 times

Last updated: Sep 18 '18