Panorama CreationThis demo uses the Video and Image Processing Blockset to show the creation of a panoramic picture from a video sequence. The model calculates the motion vector between two adjacent video frames and uses it to find the portion of each frame that best matches the previous frame. Then it selects the matching portion and concatenates it with the previous frame. By repeating this process, it builds a panoramic image out of the video sequence. ContentsDemo ModelThe following figure shows the Panorama Creation model:
Motion Estimation SubsystemThis model uses the SAD block to estimate the motion between consecutive video frames. Then it computes the motion vector of a particular block in the current frame with respect to the previous frame. The model uses this motion vector to align consecutive frames of the video to form a panoramic picture.
Panorama Creation ResultsThe model takes the video sequence in the Input window and creates a panorama, which it displays in the Panorama window. Note that this method of panoramic picture creation assumes there is no zooming or rotational variation in the video. About this videoThe above video was created using the Write AVI File block. When running this Simulink model, you can see the resulting video using a Video Viewer or To Video Display block. You can connect these viewers to any signal in the model, adjust model parameters, and view the results in real time. Additional InformationFor more information about the Video and Image Processing Blockset, see the Video and Image Processing Blockset product information page. From here you can download a free 30-day trial, read the documentation and user stories, request more information, and get pricing information. Also, see the other product demos that illustrate key features of the Video and Image Processing Blockset. |