Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to extract the Mat of non square object in opencv?

I am using opencv (both c++ and java) to segement a white paper in the picture showed below, this works , but now I have to split the paper into 8 small section and get the Mat of each section, since each section is not a pure square, it is hard to use submate(startrow, endrow, startcol, endcol).

Is there any way in opencv to extract the Mat for this kind of none square object?image description

click to hide/show revision 2
retagged

updated 2013-10-13 02:06:40 -0600

berak gravatar image

how to extract the Mat of non square object in opencv?

I am using opencv (both c++ and java) to segement a white paper in the picture showed below, this works , but now I have to split the paper into 8 small section and get the Mat of each section, since each section is not a pure square, it is hard to use submate(startrow, endrow, startcol, endcol).

Is there any way in opencv to extract the Mat for this kind of none square object?image description