Ask Your Question

Just a curiosity

asked 2017-02-07 18:48:56 -0500

darioali gravatar image

updated 2017-08-14 18:22:30 -0500

In some code i see something like that:

Mat bw; source_image.copyTo(bw); bw = bw < 60;

But i don't understand what is the meaning of the operator '<'. I try to find in the doc but i don't find anything (maybe i don't know what i need to search). Someone can explain me? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-07 19:23:41 -0500

Tetragramm gravatar image

It's a shortcut to the compare function. It returns a Mat with 255 where the value in bw is less than 60.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-02-07 18:48:56 -0500

Seen: 66 times

Last updated: Feb 07 '17