About the conversion ratio of PNG images in CAD

Source: Internet
Author: User
background

A brief introduction, recently made a point cloud slicing management gadget, point cloud slicing from the JRC software exported PNG images and SCR files, and PNG dpi will be different, and the SCR profile has only one scaling factor, so it is troublesome to do internal processing, unable to get the actual location of the image.

SCR file

; JRC reconstructor orthophoto Import command sequence into AutoCAD;
This script imports the Orthophoto "Limian_5_002_hjz.png" to AutoCAD, keeping the original Orthophoto size in meters. ;
The position and orientation, the Orthophoto had in Reconstructor are also exported to AutoCAD. ; Furthermore, a new UCS called "UCS_FROM_LIMIAN_5_002_HJZ" would be being created in AutoCAD,; with the same position and Orientat
Ion of the Orthophoto. ;
A new layer called "LIMIAN_5_002_HJZ" would be created on AutoCAD to contain the orthophoto. ;
The length measure unit selected for this script is Meters. ;;----------------------------------------script (setq old-insunits (GetVar "Insunits")) Insunits 6 (setq old-osmode ( GetVar "Osmode")) _osmode 0 _ucs _w _ucs _na _d "UCS_FROM_LIMIAN_5_002_HJZ" _ucs _3 21.290760281751879, 8.6897138827298299, -1.6033916170721909 20.290760281751879,8.6897138827298299,-1.6033916170721909 21.290760281751879,8.6897138827298299,-0.60339161707219091 _ucs _na _s "ucs_from_limian_5_002_HJZ "_plan _c _layer _m" LIMIAN_5_002_HJZ "_c" LIMIAN_5_002_HJZ "_plan _c-image _a" Limian_5_002_hjz.png "0,0,0 2.0 0000000000 (here is the scaling factor) 0 (setvar "Osmode" Old-osmode) (setvar "Insunits" old-insunits) _qsave;--------------------------- ----------Endscript;; Gexcel

By cutting the 8000,10000,12000 three-length slices, the final test gets converted presumably

Actual length (cm) = pixel * 0.0264550265 * zoom factor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.