|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AcquireIMAQ_
Combination of Java and Native Windows C code to capture an image with a Hamamatsu Orca 12-bit camera and a National Instruments Image Acquisition board. This plugin could serve as an example of how ImageJ can communicate with C code through JNI, allowing ImageJ to capture images when there is no Java programming library or Twain driver available for a frame grabber.
Field Summary | |
(package private) static double |
dExposure
Length of camera exposure to use. |
(package private) static int |
iHeight
Height of image to acquire. |
(package private) static int |
iImageNumber
A unique number is tagged onto the end of the name of each newly acquired image. |
(package private) static int |
iWidth
Width of image to acquire. |
(package private) static java.lang.String |
strName
Name to give the newly acquired image |
Constructor Summary | |
AcquireIMAQ_()
|
Method Summary | |
(package private) static void |
Called when the plugin is loaded to load the C++ library |
(package private) boolean |
Acquire(int iWidth,
int iHeight,
short[] aPixels,
double[] dParams)
Java interface to C++ function which grabs images. |
void |
run(java.lang.String arg)
Begin acquiring an image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Field Detail |
static int iWidth
static int iHeight
static java.lang.String strName
static int iImageNumber
static double dExposure
Constructor Detail |
public AcquireIMAQ_()
Method Detail |
static void()
boolean Acquire(int iWidth, int iHeight, short[] aPixels, double[] dParams)
iWidth
- Width of the image to captureiHeight
- Height of the image to captureaPixels
- Array of short value in which to place the pixel valuesdParam
- Array of image capture parameters passed to and from
the C++ Acquire function. The following is a list
of parameters:dParam[0] - Default camera exposure. The value of exposure determines how bright the image is:
for Partial frame exposure, 0 < exposure < 1.0
for Full frame exposure, exposure = 1.0
for Multiple frame exposre, exposure = an integer > 1
public void run(java.lang.String arg)
run
in interface ij.plugin.PlugIn
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |