Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Round each floating number element to the nearest integer in a Matrix

Dear community

is there any built in function that makes a Round of all Mat element, it basically do the same as the following one int cvRound(double value) Mat nameFunc(Mat A);

Thank you

Round each floating number element to the nearest integer in a Matrix

Dear community

is there any built in function that makes a Round of all Mat element, it basically do the same as the following one one

int cvRound(double value)
value);

Mat nameFunc(Mat A);

A);

Thank you

Round each floating number element to the nearest integer in a Matrix

Dear community

is there any built in function that makes a Round of all Mat element, it basically do the same as the following oneone I don't want to iterate over every pixel and use

int cvRound(double value);

Mat nameFunc(Mat A);

Thank you