|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvideo.ImageProcess
public class ImageProcess
Class provides several methods to manipulate the images/Frames read frames, It can handle formats like RGB, YCbCr, HSV, YUV, HSL, HMMD, XYZ LAB and LUV.
| Constructor Summary | |
|---|---|
ImageProcess()
Constructs blank ImageProcess |
|
| Method Summary | |
|---|---|
int[][][][] |
correctDisplay(int[][][][] framesData,
int imageWidth,
int imageHeight,
int groupOfFrames)
Checks the values of Process Data of a group of frames are in the range of the target type and if not, corrects them |
int[][][] |
correctDisplayImage(int[][][] framesData,
int imageWidth,
int imageHeight)
Checks the values of Process Data of single frame is in the range of the target type and if not, corrects them |
java.awt.image.BufferedImage |
enlarge(java.awt.image.BufferedImage image,
int n)
enlarges the image/frame to the specified times to the original image/frame |
int[][][] |
readFrame(java.lang.String folderName,
java.lang.String fileName)
Reads single Image/Frame R,G and B component values into 3 dimensional array |
int[][][][] |
readFrames(java.lang.String folderName,
java.lang.String fileName,
long frameNo,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames,
java.lang.String mode)
Reads a group of frames from the specified folder and returns a 4 dimensional array in RGB format |
int[] |
rgb(int pixel)
RGB pixel to R,G,B values |
int |
rgb(int r,
int g,
int b)
Converts r, g, b values to 24-bit value |
int[] |
rgb2hmmd(int r,
int g,
int b)
Converts a pixel value from RGB to HMMD format |
int[] |
rgb2hsl(int r,
int g,
int b)
RGB to HSL |
int[] |
rgb2hsv(int r,
int g,
int b)
RGB to HSV |
int[] |
rgb2lab(int R,
int G,
int B)
RGB to LAB |
int[] |
rgb2luv(int R,
int G,
int B)
RGB to LUV |
int[] |
rgb2xyY(int R,
int G,
int B)
RGB to xyY |
int[] |
rgb2xyz(int R,
int G,
int B)
RGB to XYZ |
double[][][][] |
rgb2ycbcr(int[][][][] rgb,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames)
Converts group of images/frames from RGB to YCbCr type |
double[][][] |
rgb2ycbcr(int[][][] rgb,
int imageType,
int imageWidth,
int imageHeight)
Converts a image/frame from RGB type to YCbCr type |
int[] |
rgb2ycbcr(int r,
int g,
int b)
RGB to YCbCr |
int[] |
rgb2yuv(int r,
int g,
int b)
Converts a pixel from RGB to YUV format |
java.awt.image.BufferedImage |
shrink(java.awt.image.BufferedImage image,
int n)
shrinks the image/frame to the specified times to the original image/frame |
void |
writeFrame(int[][][] imageRGB,
java.lang.String folderName,
java.lang.String fileName)
Writes/stores a frame to the disk to specified folder with the specified name |
void |
writeFrames(int[][][][] imageRGB,
java.lang.String folderName,
java.lang.String fileName,
long frameNo,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames)
Writes/stores the group of frames data to the disk to the specified folder and with the specified name to images/frames and it throws IOException when unable to write or
no permissions to write to disk |
int[][][][] |
ycbcr2rgb(int[][][][] ycbcr,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames)
Converts group of image/frame from YCbCr to RGB type |
int[][][] |
ycbcr2rgb(int[][][] ycbcr,
int imageType,
int imageWidth,
int imageHeight)
Converts a image/frame from YCbCr to RGB type |
int[] |
ycbcr2rgb(int y,
int cb,
int cr)
Converts a pixel YCbCr to RGB |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageProcess()
ImageProcess
| Method Detail |
|---|
public int[][][][] readFrames(java.lang.String folderName,
java.lang.String fileName,
long frameNo,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames,
java.lang.String mode)
throws java.io.IOException
folderName - is represents directory name where the Frames are availablefileName - is represents the String type filename to be readframeNo - is starting frame numberimageType - represents the type of image Gray or color image/FrameimageWidth - is value of image/Frame widthimageHeight - is value of image/Frame heightgroupOfFrames - is the number of frames to be read
int array
java.io.IOException - is thrown while unable to access the frame
public int[][][] readFrame(java.lang.String folderName,
java.lang.String fileName)
throws java.io.IOException
folderName - is path to image/Frame to be readfileName - is image/Frame name
int array
java.io.IOException
public void writeFrames(int[][][][] imageRGB,
java.lang.String folderName,
java.lang.String fileName,
long frameNo,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames)
throws java.io.IOException
IOException when unable to write or
no permissions to write to disk
imageRGB - folderName - fileName - frameNo - imageType - imageWidth - imageHeight - groupOfFrames -
java.io.IOException
public void writeFrame(int[][][] imageRGB,
java.lang.String folderName,
java.lang.String fileName)
throws java.io.IOException
imageRGB - folderName - fileName -
java.io.IOException - throws when unable to write the frame
public int[][][][] correctDisplay(int[][][][] framesData,
int imageWidth,
int imageHeight,
int groupOfFrames)
framesData - holds group of frames dataimageWidth - imageHeight - groupOfFrames -
public int[][][] correctDisplayImage(int[][][] framesData,
int imageWidth,
int imageHeight)
framesData - holds group of frames dataimageWidth - imageHeight -
public java.awt.image.BufferedImage enlarge(java.awt.image.BufferedImage image,
int n)
image - holds a BufferedImagen - is number of times to enlarge the original image/frame
BufferedImage
public java.awt.image.BufferedImage shrink(java.awt.image.BufferedImage image,
int n)
image - holds a BufferedImagen - is number of times to shrink the original image/frame
public int[] rgb(int pixel)
pixel - value in int
int array
public int rgb(int r,
int g,
int b)
r - - intg - - intb - - int
public int[] rgb2ycbcr(int r,
int g,
int b)
r - - intg - - intb - - int
public double[][][] rgb2ycbcr(int[][][] rgb,
int imageType,
int imageWidth,
int imageHeight)
rgb - int arrayimageType - imageWidth - imageHeight -
double array
public double[][][][] rgb2ycbcr(int[][][][] rgb,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames)
rgb - int arrayimageType - imageWidth - width of the frame/imageimageHeight - height of the frame/imagegroupOfFrames - number of frames in array
public int[] ycbcr2rgb(int y,
int cb,
int cr)
y - - intcb - - intcr - - int
int pixel array
public int[][][] ycbcr2rgb(int[][][] ycbcr,
int imageType,
int imageWidth,
int imageHeight)
ycbcr - holds the image/frame arrayimageType - imageWidth - width of the frame/imageimageHeight - height of the frame/image
int array
public int[][][][] ycbcr2rgb(int[][][][] ycbcr,
int imageType,
int imageWidth,
int imageHeight,
int groupOfFrames)
ycbcr - holds the images/frames arrayimageType - imageWidth - imageHeight - groupOfFrames -
int array
public int[] rgb2yuv(int r,
int g,
int b)
r - - intg - - intb - - int
public int[] rgb2hmmd(int r,
int g,
int b)
r - - intg - - intb - - int
int array
public int[] rgb2hsl(int r,
int g,
int b)
r - - intg - - intb - - int
public int[] rgb2hsv(int r,
int g,
int b)
r - - intg - - intb - - int
public int[] rgb2xyY(int R,
int G,
int B)
R - - intG - - intB - - int
public int[] rgb2xyz(int R,
int G,
int B)
R - - intG - - intB - - int
public int[] rgb2lab(int R,
int G,
int B)
R - - intG - - intB - - int
public int[] rgb2luv(int R,
int G,
int B)
R - - intG - - intB - - int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||