Xy rectify tip_sheet


Published on


Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Xy rectify tip_sheet

  1. 1. XYRectify tip sheet This tip sheet was prepared for users with a working knowledge of the iWitnessTM close-range photogrammetry software system1. Best to calibrate the camera in iWitness, and use the focal length at thecalibration setting for imaging with XYRectifyIf the camera is NOT in the global camera database, and upon importing theimage, the following dialog box is presented:2. Note, in this instance, the focal length of 26mm is simply read from theEXIF header tag. If the Pixel size is not correct, it doesn’t matter as focallength is not used, however radial distortion can improve the result if thecamera is calibrated.3. In this example, the camera was not calibrated, so there’s nocorrection for the DISTORTIONS (specifically K1). For accident reconstructionmeasurements, the K2, and K3, as well as P1 and P2 are not as important as
  2. 2. K1. If the camera has been calibrated, then it is best to click the “Applycorrections” box. The pixel size (mm) should be proper relative to thec(mm) focal length. NOTE: it is always better to work with a camera that’sbeen calibrated with iWitness to optimize accuracy!4. At this point, the camera parameters are setup and the image will beimported into XYRectify.5. Control Points:XYRectify requires a minimum of 4 control points that are on a fairly planarsurface (in this example a roadway intersection.) The control points are XYcoordinates that should be accurate. In this instance a total station was usedto derive the coordinates, but a total station is not the only way of obtainingthese XY coordinates.Create a Control Point file using MS Notepad. Type in the name of thecontrol point, and then its X, and Y coordinates. See the below screencapture:
  3. 3. In our example” Lwr_BE” means “Lower Bulls-Eye” as defined by the white X and the white circle in the image. Left_CL is the end of the double centerline on the left side (note: the image is actually illustrated upside down, so that is why it appears “opposite” in the image marking process noted on the6. Click on the File + Import Control next page.)7. The Import Control thumbnail is presented in the thumbnails on the left ofthe image. Click it and the control points dialog is presented.Click in the Label field with the “red plus” and it becomes a “yellow plus”.
  4. 4. Mark the corresponding location of the control point in the image and itbecomes a “green plus”.Do this action for the remaining (minimum) of 4 control points.Note that the “Rectified Image” in the lower left of the dialog box displaystwo options, “Full Image” and “Bounded by control points”. The default isFull Image. The operator can choose to rectify either the entire originalimage (full image), which is the default case or a portion of the originalimage (bounded by control points …) equal to the area encompassed by thecontrol points, plus a border area of approximately 10%.. In this example,we are going to leave the tick mark on the default “Full Image”.The below illustrates all 5 Control Points Marked, from the Control PointsDialog Box:
  5. 5. 8. Click the “Create Image”The Save As dialog will now be presented. Name the resulting ProjectiveTransformation Image a new name; (we’ll call it “Crash”). Save it to yourworking folder.The new image named “Crash.jpg” is now planar rectified and an imagethumbnail of it is presented above the Control Points dialog box:9. Output File from XYRectify:The saved JPEG is accompanied by ‘tfw’ or ‘World files’ which define the XYreference coordinate system for the rectified image. The TFW (ASCII textfile) is named the same name as your image; (in this example case“Crash.twf” located in your working directory.The image can now be imported into your favorite CAD package.
  6. 6. IMAGE SCALING TIP:What we have found, for those that do not have a program that reads theTFW coordinates output from XYRectify, it is easier to just apply scale in aCAD program; in this case, we will scale the image in the CAD Zones “CrashZone” diagramming software www.cadzone.com as noted below:The image is now scaled, and the user can zoom in and “trace” the imageusing the CAD tools for an accurate 2D diagramming of the entities on theXYRectify planar surface.©2008 All Rights Reserved, DeChant Consulting Services – DCS Inc www.iwitnessphoto.com