1

I am new to image processing. I am learning it. I am stuck on stitching images. I read about boofCV and openCV. But, I guess they are for the advanced level. I really wanted to merge image with basic level as I have less knowledge.

There are 70% overlapping between to images.So, I need to cut 70% from second image and then merge.

So, kindly tell me how to proceed with it. Tell me the library to focus.

Thank you.

Jay
  • 1,055
  • 2
  • 8
  • 17

1 Answers1

-1

Graphics2D API could help you to crop. please rename the question subject.

    File file = new File("Image_name.jpg");
    FileInputStream fis = new FileInputStream(file);
    BufferedImage image = ImageIO.read(fis);
    int width = image.getWidth();
    int height = image.getHeight();

using this width, you can crop the image using Graphics2D API - draw Image method - Graphics2D

By passing right value for x, y to draw image method, you can get your desired crop.

Srikanth Balaji
  • 2,638
  • 4
  • 18
  • 31