Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

convert live colour video into gray scale video

291 views
Skip to first unread message

ankur

unread,
Nov 5, 2007, 3:21:46 AM11/5/07
to
Hi,
i work on project related to video processing.I do programming in MATLAB.I take video from webcam.In which i want to convert this colur video into gray scale video.i get the webcam video preview in matlab.Now i want ot convert this video into gray scale video.What can i do for this? I try but i get nothing.

Thanks.

Dave Tarkowski

unread,
Nov 5, 2007, 8:52:09 AM11/5/07
to

The easiest way is to set the returned color space for your videoinput
object to grayscale:

vid.ReturnedColorSpace = 'grayscale';

-Dave Tarkowski

ankur

unread,
Nov 5, 2007, 10:14:23 PM11/5/07
to
Hi Dave,
thanks for your reply.As you mention vid.ReturnedColorSpace='grayscale'; , this things i do early but get nothing.Whenever i do this thing i only get the colour video preview.please tell me some other useful idea to get the live gray scale video.

Thanks,
Ankur

Dave Tarkowski

unread,
Nov 6, 2007, 9:07:51 AM11/6/07
to

What version of MATLAB are you using?

-Dave

ankur

unread,
Nov 6, 2007, 10:29:29 PM11/6/07
to
Hi Dave,
I use MATLAB 7.0 version.

Thanks,
Ankur

Dave Tarkowski

unread,
Nov 7, 2007, 2:11:29 PM11/7/07
to

The behavior that you are seeing is the behavior of the preview window
in the version of the Image Acquisition Toolbox that you are using. In
order to get the behavior that I described, you will need to upgrade to
a newer version of the toolbox (and MATLAB) or implement your own
preview functionality.

-Dave Tarkowski

ankur

unread,
Nov 7, 2007, 11:18:25 PM11/7/07
to
Hi Dave,
thanks for reply.I have only this version.As you mention behavior of the preview window in this version.What can i do next?? So please give me idea about this.Now i want to do preview functionality for preview which i get.can you give me any suggestion for that??

Thanks,
Ankur

Dave Tarkowski

unread,
Nov 8, 2007, 3:39:24 PM11/8/07
to

Ankur,

See this demo:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5438&objectType=FILE.
It should help you get started.

-Dave

ankur

unread,
Nov 14, 2007, 12:00:02 AM11/14/07
to
Hi dave,
thank you for reply. Now i want to purchase the DSP kit.In which i have seen several products.it is too costly.i am not cleared about following doubts. i want only DSP kit.my application to DSP kit is in image and video processing. i use USB webcam/camera connected to DSP kit. i want to processed those data and want to transmit via TCP/IP or to display on LCD etc... are there any port available for that? and what will be the procedure to load the MATLAB code in that kit?
If you have idea about this then plz,forward me suitable kits specification with quatations.

thanks,
Ankur

0 new messages