Class PixelSlicer
Slices data into chunks desired
Inheritance
System.Object
PixelSlicer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:EvilDICOM.Core.Image
Assembly:EvilDICOM.dll
Syntax
public class PixelSlicer
Methods
View SourceGetSlice<T>(T[], Int32, Int32, Int32)
Copies a 2D slice from a 3D pixel matrix
Declaration
public static T[, ] GetSlice<T>(T[] pixels, int z, int dimX, int dimY)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | pixels | a 1D array of pixel data |
| System.Int32 | z | the z-slice index |
| System.Int32 | dimX | the width of the image in the X direction |
| System.Int32 | dimY | the height of the image in the Y direction |
Returns
| Type | Description |
|---|---|
| T[,] | a 2D array of the slice pixel data |
Type Parameters
| Name | Description |
|---|---|
| T | the type of the data |