?? readme-jai.txt
字號:
around an image.
Convolves an
boxfilter image using a
two-dimensional
box filter.
Performs an MxN
convolve image X X X General and
convolution. separable cases.
Extracts a
crop subarea of an
image.
Performs
Only single band,
dilate morphological X X X 3x3 kernels
dilation on an
image. centered at 1,1
Performs
Only single band,
erode morphological X X X 3x3 kernels
erosion on an
image. centered at 1,1
Performs a
combined integral
filteredsubsample subsample and X X X
symmetric
product-separable
filter.
Performs edge
gradientmagnitude detection using X X X
orthogonal
gradient masks.
Computes the Only single band;
maxfilter maximum value of X X X only for a SQUARE
a pixel mask of size 3, 5,
neighborhood. or 7
Computes the
medianfilter median value of aX X X
pixel
neighborhood.
Computes the Only single band;
minfilter minimum value of X X X only for a SQUARE
a pixel mask of size 3, 5,
neighborhood. or 7
Creates a mosaic
mosaic of two or more X X X
rendered images.
Rotates an image InterpolationTable
rotate about an X X X is not MMX
arbitrary point. accelerated for
even byte images.
Scales and InterpolationTable
scale translates an X X X is not MMX
image. accelerated for
even byte images.
InterpolationTable
shear Shears an image. X X X is not MMX
accelerated for
even byte images.
Subsamples an
subsampleaverage image by X X
averaging over a
moving window.
Subsamples a
subsamplebinarytogray bilevel image to X X
a grayscale
image.
Translates an
image by an InterpolationTable
translate integral or X X X is not MMX
fractional accelerated for
amount. even byte images.
Reflects an image
in a specified
transpose direction or X X X
rotates an image
in multiples of
90 degrees.
Sharpens an image
unsharpmask by suppressing X X X General and
the low separable kernels.
frequencies.
Performs
warp geometric warpingX X X polynomial and
on an image. grid only.
3. Frequency-domain, Transform, and Complex Operators
Native
Operator Name Description Acceleration
C VIS MMX Notes
conjugate Computes the complex
conjugate of an image.
dct Computes the Discrete Cosine X
Transform of an image.
Computes the Discrete
dft Fourier Transform of an X
image, possibly resulting in
a complex image.
dividecomplex Computes the quotient of two
complex images.
Computes the inverse
idct Discrete Cosine Transform of X
an image.
Computes the inverse
idft Discrete Fourier Transform X
of an image.
magnitude Computes the magnitude of a
complex image.
Computes the squared
magnitudesquared magnitude of a complex
image.
multiplycomplex Computes the product of two
complex images.
periodicshift Shifts an image
periodically.
phase Computes the phase angle of
a complex image.
Creates a complex image from
polartocomplex two images representing
magnitude and phase.
4. Statistical Operators
Native
Operator Acceleration
Name Description
C VIS MMX Notes
Computes the
maximum and Only if the ROI
extrema minimum pixel X X X is null or
values of an encloses the
image. entire image.
Computes the
histogram histogram of an X X X
image.
Only if the ROI
Computes the mean is null or
mean pixel value of a X X X encloses the
region of an entire image and
image. the sampling
period is 1.
5. Sourceless Operators
Operator Name Description
imagefunction Creates an image by evaluating a function.
pattern Creates an image consisting of a repeated pattern.
6. File and Stream Operators
Operator Name Description
awtimage Converts a java.awt.Image into a PlanarImage.
bmp Loads an image in BMP format.
encode Writes an image to an OutputStream.
fileload Loads an image from a file.
filestore Writes an image to a file in a given format.
fpx Loads an image in FlashPIX format.
gif Loads an image in GIF format.
Reads an image from a remote IIP server,
iip performing IIP view transforms (affine,
colortwist, filter, crop).
iipresolution Reads a single resolution of an image from a
remote IIP server.
jpeg Loads an image in JPEG format.
png Loads an image in PNG 1.0 or 1.1 format.
pnm Loads an image in PBM, PGM, or PPM format.
stream Loads an image from a stream.
tiff Loads an image in TIFF 6.0 format.
url Loads an image from a URL.
7. Other Operators
Operator Name Description
errordiffusion Performs error diffusion color quantization using
a specified color map and error filter.
Performs no processing. Useful as a placeholder
null in an operation chain or as a node which emits
meta-data.
ordereddither Performs color quantization using a specified
color map and a fixed dither mask.
renderable Constructs a RenderableImage from a RenderedImage
source.
How to Run the JAI 1.1 version of Remote Imaging
1. Create a Security Policy File
If $JAI is the base directory where Java Advanced Imaging is installed,
create a text file named $JAI/policy containing the following:
grant {
// Allow everything for now
permission java.security.AllPermission;
};
Note that this policy file is for testing purposes only, and it is not
recommended that full permission be given to all programs.
For more information on policy files and permissions please see:
http://java.sun.com/products/jdk/1.3/docs/guide/security/PolicyFiles.html
http://java.sun.com/products/jdk/1.3/docs/guide/security/permissions.html
2. Start the RMI Registry
Log in to the remote machine where the image server will be running and
start the RMI registry. For example, in the Solaris operating environment
using a Bourne-compatible shell (e.g., /bin/sh):
$ unset CLASSPATH
$ rmiregistry &
Note that the CLASSPATH environment variable is deliberately not set.
3. Start the JAI Remote Image Server
While still logged in to the remote server machine, set the CLASSPATH and
LD_LIBRARY_PATH environment variables as required for JAI (see the INSTALL
file) and start the remote imaging server:
$ CLASSPATH=$JAI/lib/jai_core.jar:$JAI/lib/jai_codec.jar:\
$JAI/lib/mlibwrapper_jai.jar
$ export CLASSPATH
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAI/lib
$ export LD_LIBRARY_PATH
$ java \
-Djava.rmi.server.codebase=\
"file:$JAI/lib/jai_core.jar file:$JAI/lib/jai_codec.jar" \
-Djava.rmi.server.useCodebaseOnly=false \
-Djava.security.policy=file:$JAI/policy \
com.sun.media.jai.rmi.JAIRMIImageServer
For example, when the above steps are executed on a machine with IP address
123.456.78.90 the following is printed:
Server: using host 123.456.78.90 port 1099
Registering image server as "rmi://123.456.78.90:1099/JAIRMIRemoteServer1.1".
Server: Bound RemoteImageServer into the registry.
4. Run the Local Application
Run the local application making sure that the serverName parameter of any
javax.media.jai.remote.RemoteJAI constructors corresponds to the machine on
which the remote image server is running. For example, if the machine with
IP address 123.456.78.90 above is named myserver the serverName parameter of
any RemoteJAI constructors should be "myserver".
How to Run the JAI 1.0.2 version of Remote Imaging
For more information on RMI (remote method invocation) please refer to:
http://java.sun.com/products/jdk/rmi/index.html
1. Create a Security Policy File
If $JAI is the base directory where Java Advanced Imaging is installed,
create a text file named $JAI/policy containing the following:
grant {
// Allow everything for now
permission java.security.AllPermission;
};
Note that this policy file is for testing purposes only.
For more information on policy files and permissions please see:
http://java.sun.com/products/jdk/1.2/docs/guide/security/PolicyFiles.html
http://java.sun.com/products/jdk/1.2/docs/guide/security/permissions.html
2. Start the RMI Registry
Log in to the remote machine where the image server will be running and
start the RMI registry. For example, in the Solaris operating environment
using a Bourne-compatible shell (e.g., /bin/sh):
$ unset CLASSPATH
$ rmiregistry &
Note that the CLASSPATH environment variable is deliberately not set.
3. Start the JAI Remote Image Server
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -