I think I have a solution (At least one).
going from video into one lone image:
function [ mOutputImage ] = ReshapeVideoIntoImage( tInputVideo )
numRows = size(tInputVideo, 1);
numCols = size(tInputVideo, 2);
numChannels = size(tInputVideo, 3);
numFrames = size(tInputVideo, 4);
mOutputImage = permute(tInputVideo, [1, 4, 2, 3]);
mOutputImage = reshape(mOutputImage, [(numRows * numFrames), numCols, numChannels]);
end
Going from Long Image into Video:
function [ tOutputVideo ] = ReshapeImageIntoVideo( mInputtImage, videoNumRows )
numRows = size(mInputtImage, 1);
numCols = size(mInputtImage, 2);
numChannels = size(mInputtImage, 3);
videoNumFrames = numRows / videoNumRows;
tOutputVideo = reshape(mInputtImage, [videoNumRows, videoNumFrames, numCols, numChannels]);
tOutputVideo = permute(tOutputVideo, [1, 3, 4, 2]);
end
Thank You.
P.S.
If there is an even faster way, I'd be happy to see.