yarp
Class Image

java.lang.Object
  extended by yarp.PortReader
      extended by yarp.Portable
          extended by yarp.Image
Direct Known Subclasses:
FlexImage, ImageFloat, ImageInt, ImageMono, ImageMono16, ImageRgb, ImageRgba, ImageRgbFloat

public class Image
extends Portable


Field Summary
 
Fields inherited from class yarp.PortReader
swigCMemOwn
 
Constructor Summary
Image()
           
Image(Image alt)
           
Image(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 boolean copy(Image alt)
           
 boolean copy(Image alt, int w, int h)
           
 void delete()
           
protected  void finalize()
           
static long getCPtr(Image obj)
           
 SWIGTYPE_p_void getIplImage()
           
 int getPadding()
           
 SWIGTYPE_p_unsigned_char getPixelAddress(int x, int y)
           
 int getPixelCode()
           
 int getPixelSize()
           
 int getQuantum()
           
 SWIGTYPE_p_unsigned_char getRawImage()
           
 int getRawImageSize()
           
 SWIGTYPE_p_unsigned_char getRow(int r)
           
 SWIGTYPE_p_p_char getRowArray()
           
 int getRowSize()
           
 int height()
           
 boolean isPixel(int x, int y)
           
 boolean read(ConnectionReader connection)
           
 void resize(Image alt)
           
 void resize(int imgWidth, int imgHeight)
           
 void setExternal(SWIGTYPE_p_void data, int imgWidth, int imgHeight)
           
 void setQuantum(int imgQuantum)
           
 void setTopIsLowIndex(boolean flag)
           
 boolean topIsLowIndex()
           
 int width()
           
 void wrapIplImage(SWIGTYPE_p_void iplImage)
           
 boolean write(ConnectionWriter connection)
           
 void zero()
           
 
Methods inherited from class yarp.Portable
copyPortable, getCPtr, getType
 
Methods inherited from class yarp.PortReader
getCPtr, getReadType, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

public Image(long cPtr,
             boolean cMemoryOwn)

Image

public Image()

Image

public Image(Image alt)
Method Detail

getCPtr

public static long getCPtr(Image obj)

finalize

protected void finalize()
Overrides:
finalize in class Portable

delete

public void delete()
Overrides:
delete in class Portable

copy

public boolean copy(Image alt)

copy

public boolean copy(Image alt,
                    int w,
                    int h)

width

public int width()

height

public int height()

getPixelSize

public int getPixelSize()

getPixelCode

public int getPixelCode()

getRowSize

public int getRowSize()

getQuantum

public int getQuantum()

getPadding

public int getPadding()

getRow

public SWIGTYPE_p_unsigned_char getRow(int r)

getPixelAddress

public SWIGTYPE_p_unsigned_char getPixelAddress(int x,
                                                int y)

isPixel

public boolean isPixel(int x,
                       int y)

zero

public void zero()

resize

public void resize(int imgWidth,
                   int imgHeight)

resize

public void resize(Image alt)

setExternal

public void setExternal(SWIGTYPE_p_void data,
                        int imgWidth,
                        int imgHeight)

getRawImage

public SWIGTYPE_p_unsigned_char getRawImage()

getRawImageSize

public int getRawImageSize()

getIplImage

public SWIGTYPE_p_void getIplImage()

wrapIplImage

public void wrapIplImage(SWIGTYPE_p_void iplImage)

read

public boolean read(ConnectionReader connection)
Overrides:
read in class Portable

write

public boolean write(ConnectionWriter connection)
Overrides:
write in class Portable

setQuantum

public void setQuantum(int imgQuantum)

topIsLowIndex

public boolean topIsLowIndex()

setTopIsLowIndex

public void setTopIsLowIndex(boolean flag)

getRowArray

public SWIGTYPE_p_p_char getRowArray()