From: OlivierDugas <oli...@ul...> - 2013-07-17 17:14:32
|
Hi everybody First of all, the above replies made me realize that I misused matlab to load the .bin images. The following code is used to load an image into matlab. binfile = dir('img.bin'); fid = fopen(binfile.name); A = fread(fid, 'uint16=>uint16'); fclose(fid); B = reshape(A,752,480); RGB = demosaic(B,'gbrg'); imshow(RGB) Right now, I do succeed to load the image into matlab BUT it's a full black image. I know that the camera is not the problem, since I did manage to capture a yellowish portrait of me using an old angstrom freeze. Thus, I don't understand why the image capture using a recent OS like Linaro is not working. I use a Caspa VL, but I don't think it matters to use a VL instead of a FS, since the difference is the infrared filter for all I know. Thanks again for your time. -- View this message in context: http://gumstix.8.x6.nabble.com/Caspa-cameras-with-Linaro-3-5-0-kernel-or-using-ROS-tp4967478p4967557.html Sent from the Gumstix mailing list archive at Nabble.com. |