frame to pixel stream block
2 views (last 30 days)
Show older comments
Hello everyone, i want to use frame to pixel stream block in order realize a stereo vision system based on fpga, the the demo i got is using a video as a source, in my case i want to use a pair of images. my question is whether this block (frame to pixelstream, and pixelstream to frame) would work on images or not because it is not working with me. **frame : what is the meaning of this term in this block (a single image from a video stream or something else...) thank you in advance.
0 Comments
Answers (2)
Walter Roberson
on 14 Nov 2016
Yes, frame to pixelstream will work on images that have already been read in.
"frame" is a 2D or 3D array representing a single still image. As you go through a video, each time you read one frame (an image). A pixelstream is mostly just reshaping the array into a vector. However, pixel streams might also include information about the structure of the frame, that would allow the video to be recreated afterwards -- information about pixel timing, "backporch" and so on.
Bharath Venkataraman
on 15 Nov 2016
Please take a look at the examples in vision HDL Toolbox. For example, the Edge Detection and Image Overlay example reads in a video which is then passed to the Frame To Pixels block.
For stereo vision, you can either
- combine the two pixels into one stream (so two uint8 values could go together as a uint16 value)
- combine the two streams into a vector of 2 (so input would be 2 channels, 1x2 uint8)
- use two Frame To Pixels blocks, each getting the left/right side
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!