Simulink Block Processing - internal start-of-frame indicator?

1 view (last 30 days)
Hi,
I'm using the Simulink block processing object for some computer vision work. I feed it frames (from a video), it splits those frames into small blocks that I can work on, and then it reassembles the frame afterwards.
However, I've found that I really need a "start of frame" (or "end of frame") indicator for the things that happen inside. For example, there's a block that averages the entire image by adding up all the blocks, and it obviously needs to know when one frame finishes and the next one starts. I know that it'd be much easier to do the averaging outside the block processing object, but that's not practical when it's implemented in hardware (because I don't get a whole frame at a time, I get a stream of pixels).
Is there some way to achieve this, or do I have to implement a counter inside that counts how many pixels have been provided and outputs a frame-sync signal after a full image has been transferred?
Cheers, Evan

Answers (1)

Evan Slatyer
Evan Slatyer on 13 Mar 2015
Never mind, got it. The Block Location input carries the required data.

Community Treasure Hunt

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

Start Hunting!