Haofun123 / procamcalib

Automatically exported from code.google.com/p/procamcalib
0 stars 0 forks source link

Error when finding Ray plane intersection #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Camera Calibration
2. Load Camera Calibration
3. Set Projector's calib. images
4. Ray plane intersection (ERROR)

What is the expected output? What do you see instead?
Should ask for click on the four extreme corners of the projected pattern. 
Instead of I got an error like this

---------------------------------------------------------------------
You may now run 'Calibration' to recalibrate based on this new set of images.
Window size for corner finder (wintx and winty):
wintx ([] = 5) = 
winty ([] = 5) = 
Window size = 11x11
??? Undefined function or method 'rgb2gray' for input arguments of type 'uint8'.

Error in ==> cam_proj_3d_points at 31
    I = double(rgb2gray(imread( [calib_name num2str(first_num+i-1) '.' format_image])));

??? Error while evaluating uicontrol Callback
---------------------------------------------------------------------

What version of the product are you using? On what operating system?
ProCamCalin_v0.5, Windows 7

Please provide any additional information below.
I used jpg images for calibration

Original issue reported on code.google.com by udaya.u...@gmail.com on 1 Nov 2011 at 12:35

GoogleCodeExporter commented 8 years ago
Hi,
Thank you for the toolbox. It works for me perfectly, however, I have one 
question.
After I finished the projector calibration, If I have another camera 
calibration file, how I can redo the projector calibration with the new camera 
calibration file without redoing the projector calibration process from the 
beginning?.

Original comment by BariAn...@gmail.com on 8 Nov 2011 at 7:17

GoogleCodeExporter commented 8 years ago
Did you ever figure this error out? I'm having a very similar one. My error 
message at the same junction is:

-------------------------------------------------------------------
You may now run 'Calibration' to recalibrate based on this new set of images.
Window size for corner finder (wintx and winty):
wintx ([] = 5) = 
winty ([] = 5) = 
Window size = 11x11
??? Error using ==> rgb2gray>parse_inputs at 82
MAP must be a m x 3 array.

Error in ==> rgb2gray at 35
X = parse_inputs(varargin{:});

Error in ==> cam_proj_3d_points at 31
    I = double(rgb2gray(imread( [calib_name num2str(first_num+i-1) '.' format_image])));

??? Error while evaluating uicontrol Callback
-------------------------------------------------------------------

Original comment by nick.her...@gmail.com on 6 Apr 2012 at 8:37

GoogleCodeExporter commented 8 years ago
actually, when i finished the ray plane intersection step, it asks me to input 
the name of projected image name. This is not included in the tutorial step. 
what should i input? Do you guys have this problem?

Original comment by manches...@gmail.com on 26 Oct 2012 at 8:22

GoogleCodeExporter commented 8 years ago
Udaya, are you sure you have the Image Processing Toolbox along with Matlab?

Original comment by laetitia...@gmail.com on 5 May 2014 at 1:38

GoogleCodeExporter commented 8 years ago
Laetitia, Thank for the reply. Anyway, I posted this question on 2011. 

Original comment by udaya.u...@gmail.com on 7 May 2014 at 1:33