jcuda.jnpp.utilnpp
Class ImagesNPP.ImageNPP<T extends jcuda.jnpp.types.NppType>

java.lang.Object
  extended by jcuda.jnpp.utilnpp.AbstractImage
      extended by jcuda.jnpp.utilnpp.AbstractImagePacked<T>
          extended by jcuda.jnpp.utilnpp.ImagesNPP.ImageNPP<T>
Type Parameters:
T - The data type of this image
All Implemented Interfaces:
Image, ImagePacked<T>
Direct Known Subclasses:
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
Enclosing class:
ImagesNPP

public abstract static class ImagesNPP.ImageNPP<T extends jcuda.jnpp.types.NppType>
extends AbstractImagePacked<T>
implements ImagePacked<T>

This class is the abstract base class for all NPP images. That is, for all images that are handled by NPP and are using device memory.


Nested Class Summary
 
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.ImagePacked
ImagePacked.Pixel
 
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.Image
Image.Size
 
Field Summary
 
Fields inherited from class jcuda.jnpp.utilnpp.AbstractImagePacked
aPixels_, nPitch_
 
Constructor Summary
protected ImagesNPP.ImageNPP()
          Creates a new Image
protected ImagesNPP.ImageNPP(Image.Size rSize)
          Creates a new Image with the given size
protected ImagesNPP.ImageNPP(ImagesCPU.ImageCPU<T> rImage)
          Copy-constructor from host images
protected ImagesNPP.ImageNPP(ImagesNPP.ImageNPP<T> rImage)
          Copy-constructor
protected ImagesNPP.ImageNPP(int width, int height)
          Creates a new Image with the given size
 
Method Summary
 void copyFrom(jcuda.jnpp.TypedPointer<T> pData, int nPitch)
          Copy the data from the given host pointer into this image
 void copyTo(jcuda.jnpp.TypedPointer<T> pData, int nPitch)
          Copy the data from this image to the given host pointer
 
Methods inherited from class jcuda.jnpp.utilnpp.AbstractImagePacked
allocator, data, destroy, pitch, pixels, set
 
Methods inherited from class jcuda.jnpp.utilnpp.AbstractImage
equals, hashCode, height, set, size, swap, width
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jcuda.jnpp.utilnpp.ImagePacked
data, pitch, pixels, set
 
Methods inherited from interface jcuda.jnpp.utilnpp.Image
height, set, size, swap, width
 

Constructor Detail

ImagesNPP.ImageNPP

protected ImagesNPP.ImageNPP()
Creates a new Image


ImagesNPP.ImageNPP

protected ImagesNPP.ImageNPP(int width,
                             int height)
Creates a new Image with the given size

Parameters:
width - The width
height - The height

ImagesNPP.ImageNPP

protected ImagesNPP.ImageNPP(Image.Size rSize)
Creates a new Image with the given size

Parameters:
rSize - The size

ImagesNPP.ImageNPP

protected ImagesNPP.ImageNPP(ImagesNPP.ImageNPP<T> rImage)
Copy-constructor

Parameters:
rImage - The other image

ImagesNPP.ImageNPP

protected ImagesNPP.ImageNPP(ImagesCPU.ImageCPU<T> rImage)
Copy-constructor from host images

Parameters:
rImage - The other image
Method Detail

copyTo

public void copyTo(jcuda.jnpp.TypedPointer<T> pData,
                   int nPitch)
Copy the data from this image to the given host pointer

Parameters:
pData - The host pointer
nPitch - The pitch

copyFrom

public void copyFrom(jcuda.jnpp.TypedPointer<T> pData,
                     int nPitch)
Copy the data from the given host pointer into this image

Parameters:
pData - The host pointer
nPitch - The pitch