Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

please AVOID using Mat::at and for loops. it's slow, error prone, and you're defeating the purpose of using opencv as a high-level matrix library.

you're "one-off" here: r <= bwimg.rows (out-of-bounds)

again, DON'T write any loops, and rather write it as:

 bwimg *= 0.5;