Results 1 to 2 of 2
  1. #1
    lief480 is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    buffalo is offline Member
    Join Date
    May 2010
    Posts
    19
    Rep Power
    0

    Default 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-1
    Last edited by buffalo; 04-27-2011 at 04:51 AM.

Similar Threads

  1. image processing
    By rohankapoor in forum New To Java
    Replies: 4
    Last Post: 03-01-2011, 07:35 AM
  2. image processing
    By sunithamm in forum Advanced Java
    Replies: 6
    Last Post: 12-30-2010, 12:46 PM
  3. Image processing
    By syarizma in forum Advanced Java
    Replies: 6
    Last Post: 08-17-2009, 06:15 AM
  4. Image Processing
    By Josh_FL in forum Advanced Java
    Replies: 4
    Last Post: 12-30-2008, 03:45 AM
  5. image processing
    By sathish natrajan in forum Java 2D
    Replies: 2
    Last Post: 11-06-2008, 06:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •