Ask Your Question
0

Script error for descriptors_1.rows

asked 2016-06-02 01:09:51 -0600

I'm getting an 'Operator "<" cannot be applied to operands of type "int" and "method group" for my line for (int i = 0; i < descriptors_1.rows; i++)

descriptors_1.rows is initialized as Mat.

edit retag flag offensive close merge delete

Comments

2

where is that from, exactly ? (lacking context)

berak gravatar imageberak ( 2016-06-02 01:43:35 -0600 )edit

there is no such thing as a "method group" in opencv. what funny language is this ?

berak gravatar imageberak ( 2016-06-02 06:32:05 -0600 )edit

I fixed it by changing it to 'descriptors_1.rows()'

zoenightshade gravatar imagezoenightshade ( 2016-06-02 23:58:55 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-02 07:58:57 -0600

Maybe the define type of i should be unsigned type. hope it can help you.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-02 01:09:51 -0600

Seen: 198 times

Last updated: Jun 02 '16