Esempio n. 1
0
 public Slice(VolumeData volume, Point3D topLeft, Vector3D rowDir, Vector3D colDir, int rows, int cols, double spacing)
 {
     _volume         = volume;
     TopLeft         = topLeft.Clone();
     RowDirection    = rowDir.Clone();
     ColumnDirection = colDir.Clone();
     Rows            = rows;
     Columns         = cols;
     Spacing         = spacing;
     CalculateCut();
 }
Esempio n. 2
0
        public Stack(VolumeData volume, StackType stackType, double spacing, double sliceDistance)
        {
            _volume       = volume;
            SliceDistance = sliceDistance;
            switch (stackType)
            {
            case StackType.Axial:
                CalculateAxial(spacing, SliceDistance);
                break;

            case StackType.Coronal:
                CalculateCoronal(spacing, SliceDistance);
                break;

            case StackType.Sagittal:
                CalculateSagittal(spacing, SliceDistance);
                break;
            }
        }