Interface ByteRepresentationForChannel

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ByteRepresentationForChannel
Creates or retrieves a byte representation of the voxels for a particular slice.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    bytesForSlice(int sliceIndex)
    The byte-representation of the voxels for a particular slice.
  • Method Details

    • bytesForSlice

      byte[] bytesForSlice(int sliceIndex) throws ImageIOException
      The byte-representation of the voxels for a particular slice.
      Parameters:
      sliceIndex - the index of the slice (z coordinate)
      Returns:
      an existing (if possible preferably) or newly created byte-array representing a particular channel.
      Throws:
      ImageIOException - if an unsupported source or destination data-type exists for conversion