problem in region of interest selection in an image


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: problem in region of interest selection in an image

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    problem in region of interest selection in an image

    hiii everybody...
    my project is on image processing where i have to display two images, select region of interest in both the images and then show the percentage of matching of the selected region...so can anyone help me out plss...
    the problem lies in displaying both the images in different window using filechooser and then selecting region of interest in both the sample images.....
    if anyone could help me out plsssssss.....especially in region of interest selection.......

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    For displaying image(s) make a JPanel extension and override the
    paintComponent(Graphics g) -method, load the image first and draw it in this method. The selection of a region should be done by detecting mouseclicking/dragging via a MouseListener and a MouseMotionListener. If a simple rectangular selection is not enough you should look into the classes that extend the Shape -interface.

    For selecting a region of a displayed image use java.awt.CropImageFilter.
    eschew obfuscation

Similar Threads

  1. Image won't display in Applet
    By syntax_error0 in forum Java
    Replies: 1
    Last Post: 02-06-2006, 01:33 AM
  2. Replies: 0
    Last Post: 01-31-2002, 06:52 AM
  3. Image problem
    By Jack in forum Web
    Replies: 0
    Last Post: 09-13-2001, 04:29 PM
  4. VirtualQueryEx
    By MacDeath in forum VB Classic
    Replies: 2
    Last Post: 02-14-2001, 05:44 AM
  5. Image selection
    By Rohit Mediratta in forum ASP.NET
    Replies: 1
    Last Post: 03-31-2000, 01:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center