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

1 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by