|
|
|
@ -16,7 +16,7 @@ public class MatOfKeyPoint extends Mat { |
|
|
|
|
|
|
|
|
|
protected MatOfKeyPoint(long addr) { |
|
|
|
|
super(addr); |
|
|
|
|
if(checkVector(_channels, _depth) < 0 ) |
|
|
|
|
if( !empty() && checkVector(_channels, _depth) < 0 ) |
|
|
|
|
throw new IllegalArgumentException("Incomatible Mat"); |
|
|
|
|
//FIXME: do we need release() here?
|
|
|
|
|
} |
|
|
|
@ -27,7 +27,7 @@ public class MatOfKeyPoint extends Mat { |
|
|
|
|
|
|
|
|
|
public MatOfKeyPoint(Mat m) { |
|
|
|
|
super(m, Range.all()); |
|
|
|
|
if(checkVector(_channels, _depth) < 0 ) |
|
|
|
|
if( !empty() && checkVector(_channels, _depth) < 0 ) |
|
|
|
|
throw new IllegalArgumentException("Incomatible Mat"); |
|
|
|
|
//FIXME: do we need release() here?
|
|
|
|
|
} |
|
|
|
|