[JAI] How to save a cropped image in a file?
I'm on a task to segment an image into different frames which I did using the
ParameterBlock params = new ParameterBlock();
params.add(X coordinate);//x origin
params.add(Y coordinate);//y origin
result= JAI.create("crop", params);
And I find that the image is cropped as per the coordinates i have given as
input(verified the output using Swing concept)
But the problem arises when I try to write into the file using
String fileName = "address";
File output1 = new File(fileName);
The image which is stored in the addressed file start and end with different
coordinates i.e IT IS NOT THE REGION OF INTEREST.
But i verified that the width and height of the stored cropped image is as
per desired (but not the coordinates)
I understand that whatever values are being given in x,y. It just takes
Can anyone please help me to overcome this problem of storing the desired
cropped image in a file.
Thanking in advance,
View this message in context: http://old.nabble.com/How-to-save-a-cropped-image-in-a-file--tp27982479p...
Sent from the JAI Projects - Interest mailing list archive at Nabble.com.