PDA

View Full Version : image processing



smart0730
02-03-2006, 12:45 PM
hi...

i lately started out with image processing...i downloaded few ebooks-
image processing in c, robot vision and 2d image processing....
i found the first ebook somewhat easy to understand coz it involved c(which i'm pretty good at) but its huge...the programs are huge too...
how should i go on with this topic...whatz the best book which will be easy
for me to follow...and i heard that matlab is also used for image process.
so should i go on with image processing in matlab or c :?: ..

so little help required....

varun

ESKAY
02-03-2006, 12:57 PM
Hi

Even i work on image processing. Right tool for your work depends on your application. Though MATLAB is a powerfull tool, you can feel the full power of various image processing technique only when you code(VC++) on your own.

There are several third party tools available which makes your coding easy in C/C++ environment. I use OpenCV - suitable for Image Processing/Machine Vision applications. Try to download OpenCV beta 5 version for more details.

Can you post me the details of e-books you have downloaded?

With regards
ESKAY

smart0730
02-03-2006, 01:06 PM
hey....

well...i'll download opencv....but..as i'm a newbie in image processing...i
would like to know exactly where and how to start this .....
well can u tell me how did u start learning this topic...it'll be damn helpful
and what are the prerequisites for this topic....
i dont know vc++....but if its easy using this...then i'll learn it...
so which is the best and easy path.....

thanks
varun

rao
02-03-2006, 06:58 PM
If you are ok with java.. try using JMF..

google for it ..

Rao

vikas
02-03-2006, 07:40 PM
Not JMF but JAI

yogi
02-03-2006, 08:43 PM
hai vikas,

how u acessed webcam in java. I know only c and java. I am not so good at coding. Tell wht should i do to acess webcam in java and some image processing. Which webcam u used for ur project.

vikas
02-03-2006, 09:19 PM
Any windows supporting webcam will work .

For using the webcam u will have to install and use Java media framework ( JMF )

Given below is code from one of my projects .... just search for tuerms from it and ull get the point . read JMF Docs they are well writeen ...


/************************************************** *********
* Camera Intialize
* This code initializes the camera and starts the input
* stream from the webcam .
************************************************** **********/

t=new Thread(this);
t.start();
}

public void run()
{

di = CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0");
ml = di.getLocator();
try {
player = Manager.createRealizedPlayer(ml);
player.start();
} catch ( Exception e) {
System.out.println("Could not initalize webcam !!!");
}

getcur=true;
FrameGrabbingControl fgc = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
for( ; ; )
{
//System.out.println("Capturing Image");
MediaTracker mt = new MediaTracker(this);
Buffer buf = fgc.grabFrame(); // Convert it to an image
btoi = new BufferToImage((VideoFormat)buf.getFormat());
transformImage = btoi.createImage(buf); // show the image

mt.addImage(transformImage, 0);
try { mt.waitForAll(); }
catch( InterruptedException ie ){}

oImage= MyFilter.CImage(transformImage);
try
{
Thread.sleep(100);
}catch(Exception e){}

if(pointsSet)
{

transformImage=MyFilter.subImage(transformImage,po int1.x,point1.y,width,height);
float scale[]={scaleX,scaleY};
transformImage=MyFilter.processImageScale(transfor mImage,scale);
transformImage=MyFilter.processImageToGray(transfo rmImage);
//bwImagePanel.setImage(transformImage);
cutImage=MyFilter.CImage(transformImage);
vPanel.setImage(cutImage);
//if(transformImage==null)
//System.out.println("transformImage = "+transformImage);

if(firstRun){
oldtransformImage=MyFilter.CImage(transformImage);//.getScaledInstance(240,240,Image.SCALE_DEFAULT);
oldtransformImage=MyFilter.CImage(transformImage);
firstRun=false;
// System.out.println("oldtransformImage = "+oldtransformImage);
}else if(getcur)
{
// System.out.println("getcur is putting into curtrans !!!");
curtransformImage=MyFilter.CImage(transformImage);
getcur=false;
}
//if(curtransformImage==null)//System.out.println("curtransformImage = null");
if(oldtransformImage==null){//System.out.println("oldtransformImage = null");
oldtransformImage=MyFilter.CImage(transformImage); }

}


}

}

yogi
02-04-2006, 04:26 AM
Hi vikas,

Thank u for the information. I studied Java upto graphics previously. So now i had to study JMF, JAI. plz tell me whether i require any extra dll's or anything like tht for webcam interfacing. Have u acessed USB in Java( actually i wanted to try for interfacing AVR with usb). Wht is the output format of the webcam u used, is it a RG RG BG BG format,bmp or jpeg format. Can u tell me which webcam u used and wht i should study to do this

vikas
02-04-2006, 05:30 PM
HI



So now i had to study JMF, JAI. plz tell me whether i require any extra dll's or anything like tht for webcam interfacing.

When u intall JMf ..It will install the required files for Java tro access ur webcam .


Have u acessed USB in Java( actually i wanted to try for interfacing AVR with usb).

USB in java no ( never needed 2 :) ). USB with AVR check out atmel site / search for Igor USB / avr USB ... The only special req is a 12 Mhz which is easily availible .


Wht is the output format of the webcam u used, is it a RG RG BG BG format,bmp or jpeg format.

SImple bitmap like of format RGB :) ... if i remember correctly doint worry abt it :)


Can u tell me which webcam u used and wht i should study to do this

Any Webcam ... install drivers ... install webcam driver ... install JMF ... read JMF tutorials ... search suns forum in case of java related problems .

yogi
02-05-2006, 06:36 PM
Hi vikas,

I have seen atmel documentationn. It is too tough to understand tht assembly code. Let's see I can crack the code. I wanted to know how to acess a dll in Java. Is it possible. If so how to use the functions inside the dll, atmel provides documentation for the functions in the dll. Have u done this before.

vikas
02-06-2006, 12:53 AM
JAva provides a method to interface external DLL's ... but its been 2 yrs since i touched java ... look up CR it there in that .

docel
02-08-2006, 12:55 AM
smart0370!!
Gentle men always reply!
http://www.roboticsindia.com/modules.php?name=Forums&file=viewtopic&p=6636#6636

smart0730
02-10-2006, 12:23 PM
hey guys....

thanks for all the information....

well docel.....i could've replied lot earlier...but i was ill for a week..so couldnt
come to net center to reply :cry: ..i dont have net here in hyd..even i was anxious to see the replies....
by the way ...as i'm very newbie in image processing....i have few doubts

can we use a webcam using assembly....well....java and other stuff i'll be covering them soon...then i'll know exactly the previous replies......
:roll:
as of now ...i'm goin through image processing in c....
and this covers processing of image we have....he did not specify anything
about how to get an image with webcam .....
how can we get an image through webcam in c....
:?:

thanx

varun

taknev13
02-10-2006, 05:09 PM
dude if u want realtime processin java wont help your coz.

so decide wot u wanna do n den take it from der.