Inconsistency reading .mov video files
I have some .mov video files that I need to process. I use the "read" function to read them after creating the video object
vid = VideoReader([pathname videoID]);
numFrames = vid.NumFrames;
for frame = 1:numFrames
temp_frame = read(vid,frame);
end
I just do some image processing to each of the frames (temp_frame) and save the results that I am interested in.
Everything works fine. However, if I run the same exact code in another computer, the intensity of each temp_frame is considerably different. For instance, if I run just that piece of code on computer1 (Windows 11 pro) the mean, max and min image intensity values are 0.9615, 1 and 0.7098 respectively, and in computer 2 (Windows 11 Home) the mean, max and min image intensity values are 0.9920, 1 and 0.7569.
Does anyone know the reason of this discrepancy and how can I solve it?
Thank you in advance.I have some .mov video files that I need to process. I use the "read" function to read them after creating the video object
vid = VideoReader([pathname videoID]);
numFrames = vid.NumFrames;
for frame = 1:numFrames
temp_frame = read(vid,frame);
end
I just do some image processing to each of the frames (temp_frame) and save the results that I am interested in.
Everything works fine. However, if I run the same exact code in another computer, the intensity of each temp_frame is considerably different. For instance, if I run just that piece of code on computer1 (Windows 11 pro) the mean, max and min image intensity values are 0.9615, 1 and 0.7098 respectively, and in computer 2 (Windows 11 Home) the mean, max and min image intensity values are 0.9920, 1 and 0.7569.
Does anyone know the reason of this discrepancy and how can I solve it?
Thank you in advance. I have some .mov video files that I need to process. I use the "read" function to read them after creating the video object
vid = VideoReader([pathname videoID]);
numFrames = vid.NumFrames;
for frame = 1:numFrames
temp_frame = read(vid,frame);
end
I just do some image processing to each of the frames (temp_frame) and save the results that I am interested in.
Everything works fine. However, if I run the same exact code in another computer, the intensity of each temp_frame is considerably different. For instance, if I run just that piece of code on computer1 (Windows 11 pro) the mean, max and min image intensity values are 0.9615, 1 and 0.7098 respectively, and in computer 2 (Windows 11 Home) the mean, max and min image intensity values are 0.9920, 1 and 0.7569.
Does anyone know the reason of this discrepancy and how can I solve it?
Thank you in advance. video processing, image processing, videoreader, read MATLAB Answers — New Questions