Results 1 to 2 of 2
- 04-26-2011, 10:39 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 2
- Rep Power
- 0
Image Recongition / processing help
Hello, alright so what I am trying to accomplish is the ability to pull a certain shape or line or picture out of another photo. Say you took notes on something and drew a triangle, I want to be able to pull just the triangle out of the picture. The background will always be white, but will sometimes have the blue lines like on paper. Any ideas on api's or anything I could use is appreciated.
Thank you,
Lief480
- 04-27-2011, 03:35 AM #2
Member
- Join Date
- May 2010
- Posts
- 19
- Rep Power
- 0
Hough transform
You might consider using the Hough transform (ht) to detect shapes composed of straight-line segments (e.g. a triangle). The ht is applied to a two-valued image (e.g. black and white, no gray values), which could be obtained from a continuous-tone image by thresholding. Basically a large family of lines is constructed described by a discrete range of angles and distances. A histogram is formed tabulating the count of the number of image points through which each such line closely passes. Lines with high counts are assumed to appear in the image. A shape is detected if it conforms to a number of detected lines along its boundary.
More specific information can be found at Hough transform - Wikipedia, the free encyclopedia
In Java, images may be processed by storing them in a BufferedImage class, declared as:
BufferedImage image= new BufferedImage(width,height,BufferedImage.TYPE_INT_ ARGB);
Individual pixels can then be accessed by:
int p=image.getRGB(x,y);
where x ranges from 0 to width-1 and y from 0 to height-1Last edited by buffalo; 04-27-2011 at 03:51 AM.
Similar Threads
-
image processing
By rohankapoor in forum New To JavaReplies: 4Last Post: 03-01-2011, 06:35 AM -
image processing
By sunithamm in forum Advanced JavaReplies: 6Last Post: 12-30-2010, 11:46 AM -
Image processing
By syarizma in forum Advanced JavaReplies: 6Last Post: 08-17-2009, 05:15 AM -
Image Processing
By Josh_FL in forum Advanced JavaReplies: 4Last Post: 12-30-2008, 02:45 AM -
image processing
By sathish natrajan in forum Java 2DReplies: 2Last Post: 11-06-2008, 05:13 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks