Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Kindly I just want to know how can we detect interest points in an image using java !

First , I loaded the image using this code

Java
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class test {
	
	public static void main(String[] args) {
		try {
			 
		BufferedImage originalImage = ImageIO.read(new File("D:\\Master\\input.jpg"));
 
		
		} 
		catch (IOException e) {
			System.out.println(e.getMessage());
		}
	

	}

}


and then i used another code

Java
import java.awt.*;
import javax.swing.*;

 
public class ShowImage extends JPanel  {

	 static Image image;
	public ShowImage() {
		
		super();
		image=Toolkit.getDefaultToolkit().getImage("input.jpg");
		
	}
	
	public void paintComponent(Graphics g){

		   g.drawImage(image,50,10,600,600, this);
	}
	
	public static void main(String[] args) {
		JFrame frame = new JFrame("ShowImage");
		
		
		   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		   frame.setSize(600,400);

		   ShowImage panel = new ShowImage();
		   frame.setContentPane(panel); 
		   frame.setVisible(true); 
		   	   

	}

	private static int getType(Image image2) {
		return 0;
	}

}


Which one is better to use?
i want to know after i load the image
how i can complete to detect interest point in the image

Thank you!
Regards!
Posted
Comments
Sergey Alexandrovich Kryukov 10-Oct-13 17:22pm    
What do you mean "which one"?! In none of them you are trying to detect interest points or something like that, where?
—SA
Bebo_1 11-Oct-13 13:30pm    
yes i know none of them to detect interest points
but i was talking about loading the image

1 solution

Please see this CodeProject article: BoofCV: Real Time Computer Vision in Java[^].

—SA
 
Share this answer
 
Comments
Bebo_1 11-Oct-13 13:39pm    
thank you!
It's really useful!
but after i download library and
I added an extra library to the Eclipse or to my project it didn't work ?
i don't know why.
Sergey Alexandrovich Kryukov 11-Oct-13 16:08pm    
You are welcome. But sorry, "it didn't work" is not informative at all. You need to learn how to use the library from the article and from documentation of Eclipse and JVM.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900