all: replace the <<endl by "\n".
capture: create 640x480 3-Channels matrixes for the capture (required by cvtColor).