org.naokishibata.ocvimgio
Class IplImage

java.lang.Object
  extended by org.naokishibata.ocvimgio.IplImage

public class IplImage
extends java.lang.Object

An instance of this class encapsulates an IplImage instance.


Field Summary
static int IPL_DEPTH_16S
           
static int IPL_DEPTH_16U
           
static int IPL_DEPTH_1U
           
static int IPL_DEPTH_32F
           
static int IPL_DEPTH_32S
           
static int IPL_DEPTH_8S
           
static int IPL_DEPTH_8U
           
static int IPL_DEPTH_SIGN
           
 
Constructor Summary
IplImage(int width, int height)
          Make an IplImage instance by calling cvCreateImage.
IplImage(int width, int height, int depth, int nch)
          Make an IplImage instance by calling cvCreateImage.
IplImage(IplImage img)
          Make a clone of IplImage instance by calling cvCloneImage.
 
Method Summary
 int align()
           
 int channelSeq()
           
 int colorMode()
           
 int dataOrder()
           
 int depth()
           
 void dispose()
          Release the resource allocated for this IplImage by calling cvReleaseImage.
 java.nio.ByteBuffer getDirect()
          Returns an ByteBuffer instance that points the imageData of this IplImage object.
 java.awt.image.BufferedImage getImage()
          Copies the current image to a BufferedImage instance and return it.
 int height()
           
 int ID()
           
 int imageSize()
           
 int nChannels()
           
 int nSize()
           
 int origin()
           
 void setImage(java.awt.image.BufferedImage bimg)
          Copies a BufferedImage instance to this IplImage instance
 int width()
           
 int widthStep()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IPL_DEPTH_SIGN

public static final int IPL_DEPTH_SIGN
See Also:
Constant Field Values

IPL_DEPTH_1U

public static final int IPL_DEPTH_1U
See Also:
Constant Field Values

IPL_DEPTH_8U

public static final int IPL_DEPTH_8U
See Also:
Constant Field Values

IPL_DEPTH_16U

public static final int IPL_DEPTH_16U
See Also:
Constant Field Values

IPL_DEPTH_32F

public static final int IPL_DEPTH_32F
See Also:
Constant Field Values

IPL_DEPTH_8S

public static final int IPL_DEPTH_8S
See Also:
Constant Field Values

IPL_DEPTH_16S

public static final int IPL_DEPTH_16S
See Also:
Constant Field Values

IPL_DEPTH_32S

public static final int IPL_DEPTH_32S
See Also:
Constant Field Values
Constructor Detail

IplImage

public IplImage(int width,
                int height)
Make an IplImage instance by calling cvCreateImage.


IplImage

public IplImage(int width,
                int height,
                int depth,
                int nch)
Make an IplImage instance by calling cvCreateImage.


IplImage

public IplImage(IplImage img)
Make a clone of IplImage instance by calling cvCloneImage.

Method Detail

nSize

public int nSize()

ID

public int ID()

nChannels

public int nChannels()

depth

public int depth()

dataOrder

public int dataOrder()

origin

public int origin()

align

public int align()

width

public int width()

height

public int height()

imageSize

public int imageSize()

widthStep

public int widthStep()

colorMode

public int colorMode()

channelSeq

public int channelSeq()

getDirect

public java.nio.ByteBuffer getDirect()
Returns an ByteBuffer instance that points the imageData of this IplImage object.


getImage

public java.awt.image.BufferedImage getImage()
Copies the current image to a BufferedImage instance and return it.


setImage

public void setImage(java.awt.image.BufferedImage bimg)
Copies a BufferedImage instance to this IplImage instance


dispose

public void dispose()
Release the resource allocated for this IplImage by calling cvReleaseImage.