jcuda.jnpp.utilnpp
Class ImagesNPP.ImageNPP<T extends jcuda.jnpp.types.NppType>
java.lang.Object
jcuda.jnpp.utilnpp.AbstractImage
jcuda.jnpp.utilnpp.AbstractImagePacked<T>
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 classes/interfaces inherited from interface jcuda.jnpp.utilnpp.Image |
Image.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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 widthheight
- 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
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 pointernPitch
- 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 pointernPitch
- The pitch