Hey, dont call me sir. I am Naveen. And you can post your doubts here. (if its java related.)
Hi Naveen how r u?
How do u extract pixels of iris portion and distinguish it from other parts of eye? How do u convert it into bit pattern? what java application will be useful to do these things?
I could not get what u really tell.....Can we generate pixel values from image and display it?
Thank u sir... For ur kind reply...
Hello friends...I was given a task that ,taken a image u have to convert it into pixel values...
And I have to find the difference in pixel values in various parts of the image..ie when u take ur own photo u have to pixel values of eye portion and other parts... If u people understand anything can i get advice from u what method to follow....
Hi. Your applet runs perfect now. By the way. You can not run Applet with Java call.
Example: Wrong -> c:\java AppletExample. You will get en exception. Try put it inside
<Applet></Applet> tags in an HTML page.Here is the HTML code
<HTML> <HEAD> <TITLE>Applet HTML Page</TITLE> </HEAD> <BODY> <!-- *** GENERATED applet HTML launcher - DO NOT EDIT IN 'BUILD' FOLDER *** If you need to modify this HTML launcher file (e.g., to add applet parameters), copy it to where your applet class is found in the SRC folder. If you do this, the IDE will use it when you run or debug the applet. Tip: To exclude an HTML launcher from the JAR file, use exclusion filters in the Packaging page in the Project Properties dialog. For more information see the online help. --> <H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3> <P> <APPLET codebase="classes" code="AppletExample.class" width=350 height=200></APPLET> </P> <HR WIDTH="100%"><FONT SIZE=-1><I>Generated by NetBeans IDE</I></FONT> </BODY> </HTML>
and here is the Applet
/** * * @author Kjell */ import javax.swing.*; import java.awt.*; public class AppletExample extends JApplet implements Runnable { ImageApplet fDrawingPanel; Image fImg; int fImageNum=0; String fMessage="Loading.."; boolean fDoneLoadingImage=false; public void init() { Container content_pane = getContentPane(); fDrawingPanel = new ImageApplet(this); content_pane.add(fDrawingPanel); fImg = getImage(getCodeBase(),"Vinter.jpg"); } public void start() { Thread thread = new Thread(this); thread.start(); } public void run() { int width = fImg.getWidth(this); if(width>=0) { fDoneLoadingImage=true; repaint(); return; } while(!fDoneLoadingImage) { try { Thread.sleep(500); } catch(InterruptedException ie) { } repaint(); } } public boolean imageUpdate(Image img,int info_flags,int …
hi friends,
I am pursuing mCA final semester and i want to develop a project in JAVA using swing and applet, i have a good knowledge of core java and swing, so i want a good quality project where i can test myshelf,can you please help me in deciding the project.
Hello Pradeep..This is Mathura, a new comer to this community...I read that u ought to do final year project in java...Can u give idea about usage DrawingPanel() in swing....I am studying final year computer science engineering and tyring project in iris scanning using java....
import javax.swing.*;
import java.awt.*;
public class ImageObsApplet extends JApplet implements Runnable
{
DrawingPanel fDrawingPanel;
Image fImg;
int fImageNum=0;
String fMessage="Loading..";
boolean fDoneLoadingImage=false;
public void init()
{
Container content_pane=getContentPane();
fDrawingPanel=new DrawingPanel(this);
content_pane.add(fDrawingPanel);
fImg=getImage(getCodeBase(),"Sunset.jpg");
}
public void start()
{
Thread thread=new Thread(this);
thread.start();
}
public void run()
{
int width=fImg.getWidth(this);
if(width>=0)
{
fDoneLoadingImage=true;
repaint();
return;
}
while(!fDoneLoadingImage)
{
try
{
Thread.sleep(500);
}
catch(InterruptedException ie)
{
}
repaint();
}
}
public boolean imageUpdate(Image img,int info_flags,int x,int y,int w, int h)
{
if(info_flags!=ALLBITS)
return true;
else
{
fDoneLoadingImage=true;
return false;
}
}
}
class DrawingPanel extends JPanel
{
ImageObsApplet fParent=null;
DrawingPanel(ImageObsApplet parent)
{
fParent=parent;
}
public void paintComponent(Graphics g)
{
super.paintComponent(g);
if(fParent.fDoneLoadingImage)
g.drawImage(fParent.fImg,10,10,this);
else
g.drawString(fParent.fMessage,10,10,this);
}
}
Friends this code compiles successfully.....But when i execut giving command java ImageObsApplet it throws error in exception main...can any of u rectify it please...
Welcome to Daniweb Mathura! Post your question in java forum to get help!
Hi sir...I am online...can i ask few doubts to u...
Hi to every body...I am Mathura...I am engineering student studying computer engineeing..
I want to learn more about image processing...I need u people's guidance...And u people should rectify my mistakes...Apart from my academic part I am a good classical singer and dancer too....Hope u people guide me...
Can I learn about pattern matching of iris in iris scanning using java code? can any body help me in this? And when u people post ur code please specify that in what java utilities ur methods r used..Explanation is necessary for me to understand..
Thank u...Sincerely with regards..