Ask Your Question
1

Just a curiosity

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

darioali gravatar image

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

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
1

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

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

Question Tools

1 follower

Stats

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

Seen: 234 times

Last updated: Feb 07 '17