public static Volume2D <T> CreateFromVolume <TK>(Volume2D <TK> volume) { return(new Volume2D <T>(new T[volume.Length], volume.DimX, volume.DimY, volume.SpacingX, volume.SpacingY, volume.Origin, volume.Direction)); }
protected bool Equals(Volume2D <T> other) { return(DimX == other.DimX && DimY == other.DimY && DimXY == other.DimXY && SpacingX.Equals(other.SpacingX) && SpacingY.Equals(other.SpacingY) && Origin.Equals(other.Origin) && Equals(Direction, other.Direction) && Equals(PixelToPhysicalMatrix, other.PixelToPhysicalMatrix) && Equals(PhysicalToPixelMatrix, other.PhysicalToPixelMatrix)); }
public ReadOnlyVolume2D(Volume2D <T> volume2d) : base(volume2d.Array, volume2d.DimX, volume2d.DimY, volume2d.SpacingX, volume2d.SpacingY, volume2d.Origin, volume2d.Direction) { }