I am taking a BufferedImage named "img" and rotating it Pi/2 radians using the Affine transform function. Here is the code for the above description:
BufferedImage img = ImageIO.read(new File(filePath));
AffineTransform tx = new AffineTransform();
tx.rotate(3.14/2, img.getWidth() / 2, img.getHeight() / 2);
AffineTransformOp op = new AffineTransformOp(tx,
AffineTransformOp.TYPE_BILINEAR);
img = op.filter(img, null);
However, within this buffered image, I have a pixel at position (x,y) that I am trying to keep track of post-rotation. I was wondering how I should follow this pixel's position? I am not sure of how the AffineTransform mathematically rotates the image, so I was hoping that someone could lend some insight into to tracking the pixel's position after rotation.