public Element next() { Element match = null; if (hasNext()) { match = new Element(new Element(currentX + offX, currentY + offY, target.w, target.h), currentScore); int margin = getPurgeMargin(); Range rangeX = new Range(Math.max(currentX - margin, 0), currentX + 1); Range rangeY = new Range(Math.max(currentY - margin, 0), currentY + 1); result.colRange(rangeX).rowRange(rangeY).setTo(new Scalar(0f)); } return match; }
public MatOfPoint3f(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public MatOfPoint3(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public MatOfFloat6(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfDouble(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfRect(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfPoint2f(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfByte(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfInt(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfFloat(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfInt4(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }
public Range intersection(Range r1) { Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); r.end = Math.max(r.end, r.start); return r; }
public MatOfFloat4(Mat m) { super(m, Range.all()); if( !empty() && checkVector(_channels, _depth) < 0 ) throw new IllegalArgumentException("Incompatible Mat"); //FIXME: do we need release() here? }