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
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
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!