please help in pattern matching
hi ..
I m new to java n i m facing very much probem in my project.
my project is on image processing tht involves opening two image on two different JInternalFrme and then selcting region of interest from both the images and thn i have to calculate the percentage of matching.
plz cud any body help in selecting region of interest n matching the two
if possible pls send me code for this. i wud be very thnkfull to you.
[450 byte] By [
gari_da] at [2007-11-27 2:36:37]

# 1
> ...> if possible pls send me code for this. i wud be very> thnkfull to you.No one is going to send you code. If you have a specific Java/algorithms question, feel free to ask it here. If not, hire a developer and pay him/her to do it for you.
# 2
Selecting the region of interest
Read the coordinates of the mouse.
Translate those screen window coordinates into coordinates in your image. Threat that as the center of your region of interest.
Compareing two regions of interest
Read a pixel from the region of interest in one image, Read the corresponding pixel from the region of interest in the other image.
Compare the two pixels (like compute the euclidean distance between the red green and blue components of the two pixels.) And output some number with a percent sign after it so that it looks like a percentage.
Wo.. excellent!
You can of course use more than one pixel when you do the comparison. Just average a bunch of them.