public override bool Equals( object other) { if (other is ImageRaster <RasterType, RangeType> ) { ImageRaster <RasterType, RangeType> other_typed = (ImageRaster <RasterType, RangeType>)other; if (!this.Raster.Equals(other_typed.Raster)) { return(false); } for (int index = 0; index < this.image.Length; index++) { if (!this.image[index].Equals(other_typed.image[index])) { return(false); } } } return(true); }
public ImageRaster( ImageRaster <RasterType, RangeType> other) { this.Raster = other.Raster; this.image = ToolsCollection.Copy(other.image); }