3/31/2024 0 Comments Matlab 2018b to 2014aMy problem with this is I cannot seem to perform the same functionality (filtering, playback with filtering applied, etc.) on the video using this code as I was able to on the previous code. M = struct('cdata',zeros(V.Height, V.Width,3,'uint8'). V = VideoReader('Color Data Overcast.mp4') I did a lot of search and trial and error and managed to write the following code (Almost all of this is from the various function help pages in Matlab). In 2017b it keeps asking for a movie structure. It seems the problem with the frame2im command. The code however does not work with 2017b. warning off īW = % Image Threshold to detect whiteīW = medfilt2(BW) % Median filter to remove noiseīW = bwareaopen(BW,30) % Removes blobs less than 30 pixels My original code was written to take a video, pull a frame from it, gray scale it, and then apply some filters to remove some noise and blobs from the image, and then finally play the video back under those conditions. I emailed the script to myself so I could further work on it at home and am now running into all kinds of issues. I wrote some code on a university computer that was running 2014a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |