Sometimes, depending on the size of an image, when I call addframe
in MATLAB to add 2D images to a video, I get the following warning message.
Warning: The frame height has been padded to be a multiple of four as required by the specified codec. In avifile.addframe at 127
My questions are:
Are there any ways of silencing specific warnings like this? If so, is it possible to capture a warning in a variable in my code (i.e. similar to the try & catch exception mechanism) rather than having MATLAB print this warning in the command window?
If the above is not possible. Is it there a way to silence all warnings in MATLAB temporarily?