i want to search in image to extract subImage from it, then compare subImage with another image(another image is my template), for example my template image is pen, then in an image, i want to search it to find pen (base on template image), but i don't know how to do this, can anyBody help me ?
are you looking for an exact grid of pixels in the image or something softer like a thing that looks to a certain extent like the other image.
If you have both images as bitmaps then take the colour value of pixel (0,0) in the image you are looking for. Then search the first image till you find a match. When you have a match check to see if pixel (1,0) matches the next pixel along in the image. If it does go to pixel(2,0) etc. If the pixel doesn't match go back to searching the image for the colour value from Pixel(0,0) again until you either find a match or run out of image to search.
If the program is already running you still send the parameter the same way, the constructor. The only difference is that Application.Run() won't be calling that constructor. You will have to call it yourself, how is up to you.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo