public LazyIplImage Clone() { var clone = new LazyIplImage(); if (this.stream != null) { var stream = new System.IO.MemoryStream(); MiscUtil.IO.StreamUtil.Copy(this.stream, stream); clone.stream = stream; } clone.ipl = this.ipl == null ? null : this.ipl.Clone(); return(clone); }
public LazyIplImage Clone() { var clone = new LazyIplImage(); if (this.stream != null) { var stream = new System.IO.MemoryStream(); MiscUtil.IO.StreamUtil.Copy(this.stream, stream); clone.stream = stream; } clone.ipl = this.ipl == null ? null : this.ipl.Clone(); return clone; }