Show / Hide Table of Contents
View Source

Class PixelExtensions

Inheritance
System.Object
PixelExtensions
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.Extensions
Assembly:EvilDICOM.dll
Syntax
public static class PixelExtensions

Methods

View Source

GetSlice(Int16[], Int32, Int32, Int32)

Copies a 2D slice from a 3D pixel matrix

Declaration
public static short[, ] GetSlice(this short[] pixels, int z, int dimX, int dimY)
Parameters
Type Name Description
System.Int16[] 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
System.Int16[,]

a 2D array of the slice pixel data

View Source

GetSlice(Int32[], Int32, Int32, Int32)

Copies a 2D slice from a 3D pixel matrix

Declaration
public static int[, ] GetSlice(this int[] pixels, int z, int dimX, int dimY)
Parameters
Type Name Description
System.Int32[] 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
System.Int32[,]

a 2D array of the slice pixel data

View Source

GetSlice(Int64[], Int32, Int32, Int32)

Copies a 2D slice from a 3D pixel matrix

Declaration
public static long[, ] GetSlice(this long[] pixels, int z, int dimX, int dimY)
Parameters
Type Name Description
System.Int64[] 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
System.Int64[,]

a 2D array of the slice pixel data

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX