Adding lines in matrix

6 views (last 30 days)
Bostjan
Bostjan on 13 May 2012
Hello!
I'm quite new to Matlab, and I'm stuck at some project, wondering if anyone here could help me.
Here's the dea - I got myself a composite video PAL signal and I have to recreate black & white image from it.
What I did was import file, filtered it at 3kHz (only need lumination), but I'm stuck at matrix.
Thing is that once signal drops below 0.339V, I need to create new line. Since it's syncing at that time, I have more points in a row that are below 0.339V, but than amplitude rises again. After it's risen above 0.339V, I have to wait again until it drops below and get in new line again. That way I have to create matrix.
I've extracted from file vector with amplitudes already. Now, any idea how to convert this vector into matrix the way it's described above?
Thanks in advance and enjoy, Bostjan

Answers (2)

Image Analyst
Image Analyst on 13 May 2012
I don't understand what you're saying. What does syncing have to do with anything? You mean like the sync signal on the analog waveform? This is not normally included in any digital video image. Anyway, I don't understand what you want to do when it goes above, drops below, that hen rises above some intensity value. Do you want to do something on a line-by-line basis on the digital image? Perhaps posting an image would help you describe it to us.

Bostjan
Bostjan on 13 May 2012
Hello!
This is the info signal amp has in it: http://en.wikipedia.org/wiki/File:Composite_Video.svg
Basicly what I need is to make new line in matrix when amplitude gets below 0.339V and than kind of ignore rest of sync part (otherwise i would get loads of empty lines). After that I have to fill up line with amplitudes and once I get sync signal again repeat this.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!