|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcuda.jnpp.utilnpp.AbstractImage
jcuda.jnpp.utilnpp.AbstractImagePacked<T>
T
- The content type of the imageabstract class AbstractImagePacked<T extends NppType>
Abstract base implementation of an ImagePacked
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.ImagePacked |
---|
ImagePacked.Pixel, ImagePacked.Pixel_u8_1, ImagePacked.Pixel_u8_2, ImagePacked.Pixel_u8_3, ImagePacked.Pixel_u8_4 |
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.Image |
---|
Image.Size |
Field Summary | |
---|---|
protected TypedPointer<T> |
aPixels_
The pointer to the pixel data of this image |
protected int |
nPitch_
The pitch of this image |
Constructor Summary | |
---|---|
protected |
AbstractImagePacked()
Creates a new, uninitialized AbstractImagePacked |
protected |
AbstractImagePacked(Image.Size rSize)
Creates a new AbstractImagePacked with the given size |
protected |
AbstractImagePacked(ImagePacked<T> rImage)
Creates a new AbstractImagePacked that is a copy of the given image. |
protected |
AbstractImagePacked(int width,
int height)
Creates a new AbstractImagePacked with the given size |
Method Summary | |
---|---|
protected abstract Allocator<T> |
allocator()
Returns the allocator that performs all memory operations for this image. |
TypedPointer<T> |
data()
|
void |
destroy()
Destroy this AbstractImagePacked. |
int |
pitch()
|
ImagePacked.Pixel[] |
pixels(int nx,
int ny)
|
void |
set(ImagePacked<T> rImage)
|
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.Image |
---|
height, set, size, swap, width |
Field Detail |
---|
protected TypedPointer<T extends NppType> aPixels_
protected int nPitch_
Constructor Detail |
---|
protected AbstractImagePacked()
protected AbstractImagePacked(int width, int height)
width
- The widthheight
- The heightprotected AbstractImagePacked(Image.Size rSize)
rSize
- The sizeprotected AbstractImagePacked(ImagePacked<T> rImage)
rImage
- The other imageMethod Detail |
---|
public void destroy()
protected abstract Allocator<T> allocator()
public void set(ImagePacked<T> rImage)
set
in interface ImagePacked<T extends NppType>
public int pitch()
pitch
in interface ImagePacked<T extends NppType>
public ImagePacked.Pixel[] pixels(int nx, int ny)
pixels
in interface ImagePacked<T extends NppType>
public TypedPointer<T> data()
data
in interface ImagePacked<T extends NppType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |