how to find the normal vector of a drawn (made of squares/pixels) surface?
I have a project where I need to implement physics with drawn structures. I need to come up with or find an existing algorithm that can find the normal vector at a point on the surface of an image (BufferedImage)
How do I get the data in the speciified region defining a java BufferedImage.getSubimage?
I have the following code extracting a sub-image from a JAVA BufferedImage (8-bit grayscale):