This Function intra_cons does the function of Intra Prediction on a block. If Block Size is 4x4, then there are 9 modes defined and if Block size is either 8x8 or 16x16, then there are 4 modes defined by H.264 std. All the modes are implemented separately below, as functions. Mode selection is based on which mode results in smaller SAD (Sum of Absolute Difference).
I and J are pixel numbers, N is the block size
This function is used for H.264 video format encoding and decoding
Santhana Raj (2021). Intra Prediction Construction of Image in a video frame (https://www.mathworks.com/matlabcentral/fileexchange/47796-intra-prediction-construction-of-image-in-a-video-frame), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!