Ask Your Question
0

What does the "isContinuous()" function do?

asked 2017-01-17 08:42:09 -0600

kartikeygupta9097 gravatar image
Mat I;
//blah, blah, blah. Do Something....
if(I.isContinuous())
//do something.....
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2017-01-17 08:59:30 -0600

berak gravatar image

isContinuous is meant like: the memory in yout Mat is a continuous, single chunk.

there are some cases, where this isn't so, think of a ROI:

+-----------+
+           +
+   +---+   +
+   +   +   +
+   +---+   +
+-----------+

or Mat::diag(), or Mat::col(i), all cases of non-continuous memory.

edit flag offensive delete link more
0

answered 2017-01-17 08:48:35 -0600

LBerger gravatar image

updated 2017-01-17 09:19:46 -0600

//blah, blah, blah. Do Something....

read Doc :

The method returns true if the matrix elements are stored continuously without gaps at the end of each row...

What is your problem with isContinuous Doc ?

All docs are available at docs.opencv.org Choose your doc and use search box.

edit flag offensive delete link more

Comments

Didn't show up on google. I must have tried the wrong keywords.

kartikeygupta9097 gravatar imagekartikeygupta9097 ( 2017-01-17 09:01:51 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-17 08:42:09 -0600

Seen: 9,707 times

Last updated: Jan 17 '17