jcuda.jnpp.utilnpp
Interface ImagePacked<T extends jcuda.jnpp.types.NppType>

Type Parameters:
T - The data type
All Superinterfaces:
Image
All Known Implementing Classes:
AbstractImagePacked, ImagesCPU.ImageCPU, ImagesCPU.ImageCPU_16s_C1, ImagesCPU.ImageCPU_16s_C3, ImagesCPU.ImageCPU_16s_C4, ImagesCPU.ImageCPU_16u_C1, ImagesCPU.ImageCPU_16u_C3, ImagesCPU.ImageCPU_16u_C4, ImagesCPU.ImageCPU_32f_C1, ImagesCPU.ImageCPU_32f_C3, ImagesCPU.ImageCPU_32f_C4, ImagesCPU.ImageCPU_32s_C1, ImagesCPU.ImageCPU_32s_C3, ImagesCPU.ImageCPU_32s_C4, ImagesCPU.ImageCPU_8u_C1, ImagesCPU.ImageCPU_8u_C2, ImagesCPU.ImageCPU_8u_C3, ImagesCPU.ImageCPU_8u_C4, ImagesNPP.ImageNPP, ImagesNPP.ImageNPP_16s_C1, ImagesNPP.ImageNPP_16s_C4, ImagesNPP.ImageNPP_16u_C1, ImagesNPP.ImageNPP_16u_C2, ImagesNPP.ImageNPP_16u_C3, ImagesNPP.ImageNPP_16u_C4, ImagesNPP.ImageNPP_32f_C1, ImagesNPP.ImageNPP_32f_C2, ImagesNPP.ImageNPP_32f_C3, ImagesNPP.ImageNPP_32f_C4, ImagesNPP.ImageNPP_32s_C1, ImagesNPP.ImageNPP_32s_C3, ImagesNPP.ImageNPP_32s_C4, ImagesNPP.ImageNPP_8u_C1, ImagesNPP.ImageNPP_8u_C2, ImagesNPP.ImageNPP_8u_C3, ImagesNPP.ImageNPP_8u_C4

public interface ImagePacked<T extends jcuda.jnpp.types.NppType>
extends Image

Interface that corresponds to the npp::ImagePacked class. The original ImagePacked class has three template parameters:

 template<typename D, size_t N, class A>
 
Where D represents the data type, N is the number of channels, and A is the allocator. These data type is represented using the generic type parameter, and the other template parameters are covered by the concrete classes implementing this interface, namely the static inner classes of the ImagesCPU and ImagesNPP class.


TODO: This class is not completely implemented yet: It is not possible to obtain the Pixels from such an image!


Nested Class Summary
static interface ImagePacked.Pixel
          Dummy interface - not implemented yet
 
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.Image
Image.Size
 
Method Summary
 jcuda.jnpp.TypedPointer<T> data()
          Returns the pointer to the image data
 int pitch()
          Returns the pitch of this image
 ImagePacked.Pixel[] pixels(int nX, int nY)
          TODO: ImagePacked#pixels(int, int) NOT IMPLEMENTED YET
 void set(ImagePacked<T> rImage)
          Set this image to have the contents of the given image
 
Methods inherited from interface jcuda.jnpp.utilnpp.Image
height, set, size, swap, width
 

Method Detail

set

void set(ImagePacked<T> rImage)
Set this image to have the contents of the given image

Parameters:
rImage - The other image

pitch

int pitch()
Returns the pitch of this image

Returns:
The pitch of this image

pixels

ImagePacked.Pixel[] pixels(int nX,
                           int nY)
TODO: ImagePacked#pixels(int, int) NOT IMPLEMENTED YET

Parameters:
nX -
nY -
Returns:

data

jcuda.jnpp.TypedPointer<T> data()
Returns the pointer to the image data

Returns:
The pointer to the image data