Results 1 to 3 of 3
- 10-15-2008, 10:56 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 4
- Rep Power
- 0
Cutting parts of an image and reordering them
Hi people,
I have checked the forums for image clipping, but it seems that no topic tackles this problem (I'm helping out my girlfriend with her MSc. thesis in psychology):
I need to cut six pieces from an image of a human face (eyebrows, eyes, nosetip and mouth) and display them (only them, rest of the pic remains hidden) but each of them on different, randomly selected position of another piece (e.g. left eyebrow on the position of the mouth, right eyebrow on the position of left eye, left eye on the position of the nose and so on). Image dimensions and coordinates of the image parts are known.
Any ideas? Thanks!
Pedja
- 10-16-2008, 01:42 AM #2
Member
- Join Date
- Oct 2008
- Location
- Sweden, Gothenburg
- Posts
- 21
- Rep Power
- 0
BufferedImage has a method that can be useful.
getSubimage(int x, int y, int w, int h)
Returns a subimage defined by a specified rectangular region.
I suppose you could load the original image, get the six subimages and draw them back onto a new image. Or is this not the kind of help you had in mind?
- 10-16-2008, 09:46 AM #3
Member
- Join Date
- Oct 2008
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Canvas Image popups another image (SWT)
By SpaceY in forum New To JavaReplies: 2Last Post: 11-11-2008, 01:25 PM -
Breaking huge text into multiple parts.Please help..
By waNnY in forum New To JavaReplies: 2Last Post: 02-18-2008, 04:24 AM -
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM -
Selecting parts of an image
By shaungoater in forum Java 2DReplies: 1Last Post: 12-15-2007, 10:06 PM -
Jtree - making parts editable
By kmarie in forum AWT / SwingReplies: 1Last Post: 07-27-2007, 02:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks