วันเสาร์ที่ 27 มิถุนายน พ.ศ. 2552

'javac' is not recognized as an internal or external command, operable program or batch file.

'javac' is not recognized as an internal or external command, operable program or batch file.

วิธีแก้ไข
พิมพ์เซ็ตค่า PATH ใน Command line โดยระบุ directory ที่มีไฟล์ javac.exe อยู่ สำหรับตัวอย่างด้านล่าง javac.exe ถูกเก็บอยู่ที่

C:\Program Files\Java\jdk1.6.0_11\bin

ดังนั้นใน Command line จึงพิมพ์เซ็ต path ตามนี้

>> set PATH=%PATH%;C:\Program Files\Java\jdk1.6.0_11\bin

หรือสามารถเซ็ตค่า PATH ได้อีกวิธีหนึ่งโดย คลิกขวาที่ MyComputer เลือก Properties จากนั้นเลือกแท็บ Advanced จากนั้นคลิ๊กตรง Environment Variables จากนั้นในหน้าต่าง System Variables ให้เลือก Variable ชื่อ PATH แล้วคลิก Edit จากนั้นเพิ่ม path ที่เก็บ javac.exe เข้าไปต่อท้าย value เดิมดังนี้

valueที่มีอยู่เดิม;C:\Program Files\Java\jdk1.6.0_11\bin

แต่ถ้าไม่มี variable ชื่อ PATH ให้สร้าง variable ใหม่ชื่อ PATH จากนั้นเพิ่ม value เข้าไปดังนี้

C:\Program Files\Java\jdk1.6.0_11\bin

จากนั้นกด OK แล้วทดลองใช้ javac ใน command line ได้เลย ^_^


Perspective Camera Model

Reference pic from: http://www1.cs.columbia.edu/~jebara/htmlpapers/SFM/node6.html

จากภาพจุดสีแดงคือ 3D feature point ซึ่งกำลังถูกฉายภาพลงไปบนระนาบภาพ II ด้วยเส้น perspective โดยมีจุดศูนย์กลางการฉายภาพที่จุดสีเขียว(COP)

f คือระยะห่างจาก COP ไปถึงระนาบภาพ(image plane) ไปตามแนวแกน z

การฉายภาพของ COP ไปยังระนาบภาพไปตามแนวแกน z (optimal axis หรือ principal axis) เรียกว่า principal point

โดยปกติทั่วไปแล้ว f จะถูกเซ็ตเป็น 1 เพื่อความง่ายในการแสดงสมการ และ f จะเปลี่ยนแปลงเฉพาะ scaling ของภาพ เขียนสมการได้ดังนี้

[ u ; v]2x1 = [ X ; Y]2x1*(f/Z)

สำหรับในกล้องทั่วไปจะมีตัวแปรทางเรขาคณิตอื่นอีก

[u ; v]2x1 = K*[ X ; Y ; Z]3x1

ซึ่ง

K = [ sx sseta u0 ; 0 sy vo]2x3
sx และ sy คือ scaling ของระนาบภาพตามแนวแกน X และแกน Y
sseta คือ ตำแหน่งที่เบนไประหว่างแกน X และแกน Y และ (uo,vo) ซึ่งเป็นพิกัดของ principal point
ในระนาบภาพ




วันจันทร์ที่ 22 มิถุนายน พ.ศ. 2552

Camera self-calibration

Camera calibration is the recovery of intrinsic parameters of camera. The standard off-line calibration procedure is to acquire images of an object with known Euclidean structure and compute the camera matrix that minimizes the error between the image of the object and its reprojection.

Self-calibration methods can be used when no Euclidean information is available , and, if properly designed, can also cope with varying intrinsic parameters. If the intrinsic parameters are wrong, the reconstruction will suffer from a projective distortion even if the motion is correct.

Reference จาก http://mi.eng.cam.ac.uk/~prdsm2/Research/SelfCalibration/

Type of camera parameters
  1. Extrinsic camera parameters : the parameters that define the location and orientation
    of the camera reference frame with respect to a known world reference frame.
    These are the parameters that identify uniquely the transformation between the
    unknown camera reference frame and the known world reference frame
  2. Intrinsic camera parameters: the parameters necessary to link the pixel coordinates of
    an image point with the corresponding coordinates in the camera reference frame.

Reference : http://www.cse.unr.edu/~bebis/CS791E/Notes/CameraParameters.pdf

วันอังคารที่ 2 มิถุนายน พ.ศ. 2552

Hello Blogspot

Hello Blogspot . Sir_IVY begins with blogspot. ^_^