|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectohmm.CvBase
ohmm.CvUndistort
public class CvUndistort
TBD
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ohmm.CvBase |
---|
CvBase.ExchangeHandler, CvBase.ImageServer |
Field Summary | |
---|---|
protected com.googlecode.javacv.cpp.opencv_core.CvMat |
distortions
|
protected com.googlecode.javacv.cpp.opencv_core.CvMat |
intrinsics
|
protected com.googlecode.javacv.cpp.opencv_core.IplImage |
mapx
|
protected com.googlecode.javacv.cpp.opencv_core.IplImage |
mapy
|
protected boolean |
undistort
|
protected com.googlecode.javacv.cpp.opencv_core.IplImage |
undistortImage
|
Constructor Summary | |
---|---|
CvUndistort()
|
Method Summary | |
---|---|
protected boolean |
camIndexOptional()
Whether the camera index is optional on the command line. |
protected void |
cmdHelpExt()
Display extra command line help, for subclasses. |
protected java.lang.String |
cmdHelpExtParams()
Extra command line parameters, for subclasses. |
protected void |
guiHelpExt()
Display extra GUI help, for subclasses. |
protected boolean |
handleKeyExt(int code)
Keypresses not handled by the default implementation of handleKey() are passed here. |
int |
initExt(int argc,
java.lang.String[] argv,
int ate)
Extra initialization, for subclasses. |
static void |
main(java.lang.String[] argv)
|
protected com.googlecode.javacv.cpp.opencv_core.IplImage |
process(com.googlecode.javacv.cpp.opencv_core.IplImage frame)
Process the given frame. |
void |
release()
Frees memory, closes windows, and releases resources. |
Methods inherited from class ohmm.CvBase |
---|
cmdHelp, doneProcessing, dumpCaptureProperties, finalize, fmt, getCaptureProperty, guiHelp, handleKey, handleMouse, handleMouse, init, init, init, init, mainLoop, makeGrabber, mouseEventToString, nowMS, save, setCaptureProperty, v4l2DisableAuto, v4l2EnableAuto, v4l2GetExposure, v4l2SetExposure, waitForKeypresss |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.googlecode.javacv.cpp.opencv_core.CvMat intrinsics
protected com.googlecode.javacv.cpp.opencv_core.CvMat distortions
protected com.googlecode.javacv.cpp.opencv_core.IplImage mapx
protected com.googlecode.javacv.cpp.opencv_core.IplImage mapy
protected boolean undistort
protected com.googlecode.javacv.cpp.opencv_core.IplImage undistortImage
Constructor Detail |
---|
public CvUndistort()
Method Detail |
---|
public void release()
CvBase
release
in class CvBase
protected boolean camIndexOptional()
CvBase
camIndexOptional
in class CvBase
protected void cmdHelpExt()
CvBase
cmdHelpExt
in class CvBase
protected void guiHelpExt()
CvBase
guiHelpExt
in class CvBase
protected java.lang.String cmdHelpExtParams()
CvBase
cmdHelpExtParams
in class CvBase
protected com.googlecode.javacv.cpp.opencv_core.IplImage process(com.googlecode.javacv.cpp.opencv_core.IplImage frame)
CvBase
Process the given frame.
Default impl is identity.
Note that the passed image may not be mutated. So to do any significant processing, you will need to allocate your own return image. It is typically best to do this once for the first frame, store the results in subclass instance variables, and then deallocate any allocated space in the subclass destructor.
All frames are guaranteed to have the same dimensions and pixel format.
This will be called for every iteration of mainLoop(), even while
paused. You may use the various instance fields (CvBase.frameN
, CvBase.capImage
, CvBase.paused
, CvBase.dbg
, etc) to determine what
operations to perform. Of course, when writing a subclass, you may also
add your own fields.
process
in class CvBase
protected boolean handleKeyExt(int code)
CvBase
Keypresses not handled by the default implementation of handleKey() are passed here.
Default impl just prints the keycode.
Overriding this is one way that subclasses can handle extra keypresses.
handleKeyExt
in class CvBase
public int initExt(int argc, java.lang.String[] argv, int ate)
CvBase
Extra initialization, for subclasses.
initExt
in class CvBase
ate
- the number of command line arguments already eaten by CvBase.init(int, String[])
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |