Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
ZSImageExt.h
1
2// This file is part of the 3DReshaper technology software and is a proprietary information of TECHNODIGIT.
3// Do NOT reproduce or disclose this file without TECHNODIGIT written consent.
5
6#pragma once
7
8#include "RshPluginTexture/RshPluginTextureDefines.h"
9#include "RshPluginScriptInterface/Script/SObjectStatic.h"
10#include <QtScript/Array>
11#include <QtScript/QScriptable>
12
13#ifndef FCT_DOC
14namespace rsh::ScriptBinding
15{
16#endif // !FCT_DOC
17
18// @brief
19// Extend SImage class
20#ifdef FCT_DOC
21class SImage
22#else
23class SImageExt : public SObjectStatic
24#endif // FCT_DOC
25{
26 //======================================================================================================================
27 // INTERNAL FUNCTION
28 //======================================================================================================================
29
30 //======================================================================================================================
31 // DOCUMENTED FUNCTION
32 //======================================================================================================================
33public slots:
34
43 static Array ExportOrthoImage(
44 String iOutputFilePath,
46 SVector iViewDirection,
48 SVector iHorizontalNormal,
50 SPoint iUpperLeftCorner,
52 Number iBackgroundColor,
54 Number iWidthInDocumentUnit,
56 Number iHeightInDocumentUnit,
58 Number iPixelSize,
60 Number iPointAndLineSize
63 );
64
65#ifdef FCT_DOC
82 static Array FromFile(
83 String iFileName,
85 SImageType iImageType = {}
87 );
88#else
89 static Array FromFile(QScriptContext ipContext, QScriptEngine ipEngine);
90#endif
91
99 static Array FromPix4DProject( String iFileName
101 );
102
113 static Array ExtractImageFromTexture(SPoly iPoly
115 )
116 {
117 return Array();
118 }
119
130 static Array TextureMesh(
131 SPoly iPoly,
133 Array<SImage> iImgTbl,
135 Number iVisibilityOption,
140 Number iImageOption,
144 Number iExistingOption
148 );
149
159 Array<SImage> iImages,
161 Number iClusteringDistance,
163 SCloud iCloud
165 );
166
185 static Array EstimatePose(
186 SImage iImageToEstimate,
188 Array<SPoint> iCrdModel3D,
190 Array<SPoint> iCrdUVImage,
192 Array iOptions
199 );
200
219 static Array EstimatePose(
220 SImage iImageToEstimate,
222 String iPath,
224 Array iOptions
231 );
232};
233#ifndef FCT_DOC
234} // namespace rsh::ScriptBinding
235#endif // !FCT_DOC
The SCloud class provides point cloud manipulation. The SCloud creation can be done by calling the st...
Definition: SCloud.h:41
This class is only available if you have the Survey plugin. .
Definition: SImage.h:29
static Array FromFile(String iFileName, SImageType iImageType={})
Function to import an image, and create a new SImage from file. The function automatically detects im...
static Array SphericalFromPerspectiveImages(Array< SImage > iImages, Number iClusteringDistance, SCloud iCloud)
Convert perspective images to spherical images.
static Array EstimatePose(SImage iImageToEstimate, String iPath, Array iOptions)
Estimate the pose of an image using reference points from a file.
static Array TextureMesh(SPoly iPoly, Array< SImage > iImgTbl, Number iVisibilityOption, Number iImageOption, Number iExistingOption)
Textures a mesh with images.
static Array ExtractImageFromTexture(SPoly iPoly)
Converts dynamic textures from a mesh to scene images.
Definition: ZSImageExt.h:113
static Array ExportOrthoImage(String iOutputFilePath, SVector iViewDirection, SVector iHorizontalNormal, SPoint iUpperLeftCorner, Number iBackgroundColor, Number iWidthInDocumentUnit, Number iHeightInDocumentUnit, Number iPixelSize, Number iPointAndLineSize)
Exports an ortho image and creates a georeferencing file.
static Array EstimatePose(SImage iImageToEstimate, Array< SPoint > iCrdModel3D, Array< SPoint > iCrdUVImage, Array iOptions)
Estimate the pose of an image using reference points.
SImageType
Image Type.
Definition: SImage.h:230
static Array FromPix4DProject(String iFileName)
Function to import images from a Pix4D project.
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The SPoly class provides triangular mesh(es) manipulation. The SPoly creation can be done by calling ...
Definition: SPoly.h:39
The mathematical object vector.
Definition: SVector3.h:26