protected MatOfByte(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?
}
public MatOfByte(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?
}
protected MatOfDouble(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?
}
public MatOfDouble(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?
}
protected MatOfFloat(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?
}
public MatOfFloat(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?
}
protected MatOfFloat4(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?
}
public MatOfFloat4(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?
}
protected MatOfFloat6(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?
}
public MatOfFloat6(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?
}
protected MatOfInt(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?
}
public MatOfInt(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?
}
protected MatOfInt4(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?
}
public MatOfInt4(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?
}
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?
}
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?
}
protected MatOfPoint(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?
}
public MatOfPoint(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?
}
protected MatOfPoint2f(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?
}
public MatOfPoint2f(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?
}
protected MatOfPoint3(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?
}
public MatOfPoint3(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?
}
protected MatOfPoint3f(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?
}
public MatOfPoint3f(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?
}
protected MatOfRect(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?
}
public MatOfRect(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?
}