

MaxBlobs = 1024;
closenhood = strel('square', 4);
rgbmap = uint8(colorcube(256)*256);
% rgbmap = uint8(prism(256)*256);  % or jet/hsv
% rgbmap = uint8(hsv(256)*256);  % or jet/hsv
rgbmap(1,:) = 0;
for idx = 1:size(rgbmap,1)
    rgbmap24(idx) = bitconcat(fi(rgbmap(idx,:),0,8,0));
end


frames_per_second = 60;
numCols = 320;
numRows = 240;
hblank = 44+38;
vblank = 324-240;

TsFr = 1/frames_per_second;

totalPixelsperLine = numCols + hblank;
totalLinesperFrame = numRows + vblank;
totalPixelsperFrame = (totalPixelsperLine) * (totalLinesperFrame);

Ts = TsFr/totalPixelsperFrame;
