This class is only available if you have the Survey plugin.
.
More...
Public Types | |
enum | EstimatePoseConstraintEnum { CONSTRAINT_NONE , CONSTRAINT_POSITION , CONSTRAINT_ORIENTATION , CONSTRAINT_INTERNAL } |
Bitmask to know which parameters are fixed and should not be estimated. More... | |
enum | SImageType { ABSTRACT , PERSPECTIVE , SPHERICAL , ORTHO } |
Image Type. More... | |
Public Types inherited from SComp | |
enum | RepresentationTypeEnum { SMOOTH , FLAT , WIRE , SMOOTH_WIRE , FLAT_WIRE , SMOOTH_ROTWIRE , FLAT_ROTWIRE , TEXTURE , INSPECTION } |
The different representation types for inherited classes. Use (inherited class).SMOOTH. Example: for a cloud, use SCloud.SMOOTH. More... | |
Public Slots | |
static Array | All (Number iVisCrit=2) |
Get all the SImage in the document. More... | |
static Array | ConvertColorToTexture (SPoly ioPoly, Number iPixelPerTriangle, Boolean isUpdateOnlyTriWithoutTexture) |
Convert colors/inspections of a SPoly into texture. More... | |
static Array | ConvertColorToTexture (SPoly ioPoly, Number iPixelPerTriangle, Boolean isUpdateOnlyTriWithoutTexture) |
Convert colors/inspections of a SPoly into texture. More... | |
static Array | ConvertTextureMapsToAtlas (SPoly ioPoly) |
Convert all the texture maps of a SPoly into one (or several) texture atlas. More... | |
Array | EstimatePose (Array< SPoint > CrdModel3D, Array< SPoint > CrdUVImage, EstimatePoseConstraintEnum iContraints=CONSTRAINT_NONE) |
Estimate the pose of an image using reference points. More... | |
Array | EstimatePose (String path) |
Estimate the pose of an image using reference points stored in a file. More... | |
Array | EstimatePoseFromFile (String path, EstimatePoseConstraintEnum iContraints=CONSTRAINT_NONE) |
Estimate the pose of an image using reference points stored in a file. More... | |
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. More... | |
static Array | ExtractImageFromTexture (SPoly iPoly) |
Convert dynamic textures from a poly to scene images. More... | |
static Array | FromFile (String iFileName, SImageType iImageType={}) |
Function to import an image, and create a new SImage from file. The function automatically detects image type (ortho, perspective...) and loads calibration or georeferencing information. The image type can also be forced by using the SImageType in input. If ABSTRACT type is set, the automatically image type detected won't be changed. File extensions authorized: .bmp, .tif, .jpg, .png, .gif. More... | |
static Array | FromName (String Name) |
Search all the component with the given name. More... | |
static Array | FromPix4DProject (String iFileName) |
Function to import images from a Pix4D project. More... | |
static Array | FromSel () |
Function to get selected images. More... | |
Array | GetCameraExternalParameters () |
Get external camera parameters of perspective and spherical images. More... | |
Array | GetCameraInternalParameters () |
Get internal camera parameters of a perspective image. More... | |
Array | GetImageType () |
Get image type. More... | |
Array | GetOrthoParameters () |
Get ortho image parameters. More... | |
Array | GoToCameraViewpoint () |
Go to the camera viewpoint. More... | |
static SImage | New (SImage iOther, SImageType iImageType={}) |
Constructs a SImage by copying the SImage Other and setting the SImageType in input. If ABSTRACT type is set, the image type of the SImage Other is used. More... | |
Array | SetCameraExternalParameters (SCameraExternal iExternalParams) |
Set external camera parameters for perspective and spherical images. More... | |
Array | SetCameraInternalParameters (SCameraInternal iInternalParams) |
Set internal camera parameters for a perspective image. More... | |
Array | SetOrthoParameters (SPoint iPosition, Number iRotation, Number iPixelSize) |
Set ortho image parameters. More... | |
static Array | TextureMesh (SPoly ioPoly, Array< SImage > iImgTbl, Number iVisibilityOption, Number iImageOption, Number iExistingOption) |
Texture a mesh with images. More... | |
String | toString () |
Get the type of the variable. More... | |
String | toString () |
Get the type of the variable. More... | |
Public Slots inherited from SComp | |
AddToDoc () | |
To add the object to the document. More... | |
static Array | All (Number VisCrit) |
To get all the SComp in the document. More... | |
ApplyTransformation (SMatrix iMatrix) | |
To apply a geometric transformation to the current object by making a product with the given matrix. More... | |
Clear () | |
To deallocate object memory. More... | |
static Array | FromClick () |
Displays a dialog box to select an SComp in the scene. More... | |
static Array | FromName (String Name) |
Search all the component with the given name. More... | |
static Array | FromSel () |
To get all the selected SComp. More... | |
Array | GetBoundingBox () |
Calculates the bounding box of the component. More... | |
Array | GetColors () |
To get the colors of the component. More... | |
String | GetFolderName () |
String | GetName () |
Invert () | |
Normal of the component is inverted. More... | |
Boolean | IsInDoc () |
Return if the component is in the document or not. More... | |
Boolean | IsVisible () |
MoveToGroup (String GroupPath, Boolean MoveInsideTopParent) | |
Move the object to the document group represent by the given path. If some groups, in the path, don't exist, they will be created. More... | |
RemoveFromDoc () | |
To remove the object from the document. More... | |
SetClippable (Boolean clipping) | |
Set clippable or not. More... | |
SetColors (Number Red, Number Green, Number Blue) | |
Sets the colors of the component. More... | |
SetName (String ComponentName) | |
To set the component's name. More... | |
SetRepresentationType (RepresentationTypeEnum Representation) | |
The shading type of the component is modified. More... | |
SetTransparency (Number Alpha) | |
Sets the transparency of the component. More... | |
SetVisibility (Boolean Visible) | |
Sets the component to be visible, or not visible. More... | |
String | toString () |
Get the type of the variable. More... | |
String | toString () |
Get the type of the variable. More... | |
Translate (SVector Vector) | |
To make a translation of the current object with an SVector. More... | |
Public Slots inherited from SObject | |
Clear () | |
To deallocate memory of the object. More... | |
String | toString () |
Get the type of the variable. More... | |
This class is only available if you have the Survey plugin.
.
enum SImage::SImageType |
|
inlinestaticslot |
|
staticslot |
Convert colors/inspections of a SPoly into texture.
Array.ErrorCode | The error code:
|
[in,out] | ioPoly | poly to convert |
[in] | iPixelPerTriangle | number of pixel per triangle to create the texture value (between 4 and 32) |
[in] | isUpdateOnlyTriWithoutTexture | If true: updates only triangles that are not already textured |
|
staticslot |
Convert colors/inspections of a SPoly into texture.
Array.ErrorCode | The error code:
|
[in,out] | ioPoly | poly to convert |
[in] | iPixelPerTriangle | number of pixel per triangle to create the texture value (between 4 and 32) |
[in] | isUpdateOnlyTriWithoutTexture | If true: updates only triangles that are not already textured |
|
staticslot |
Convert all the texture maps of a SPoly into one (or several) texture atlas.
Array.ErrorCode | The error code:
|
[in,out] | ioPoly | poly to convert |
|
slot |
Estimate the pose of an image using reference points.
[in] | CrdModel3D | The 3D coordinates |
[in] | CrdUVImage | The Texture UV coordinates |
[in] | iConstraints | The constraints (parameters that must not change) for the estimation:
|
Array.Value | The sum of the residual re-projection error |
Array.Image | The image with its new estimated pose |
|
slot |
Estimate the pose of an image using reference points stored in a file.
[in] | path | The path of the file where reference points are stored |
Array.Value | The sum of the residual re-projection error |
Array.Image | The image with its new estimated pose |
|
slot |
Estimate the pose of an image using reference points stored in a file.
[in] | path | The path of the file where reference points are stored |
[in] | iConstraints | The constraints (parameters that must not change) for the estimation:
|
Array.Value | The sum of the residual re-projection error |
Array.Image | The image with its new estimated pose |
|
staticslot |
Exports an ortho image and creates a georeferencing file.
Array.ErrorCode | The error code:
|
[in] | iOutputFilePath | File (with path) to save. |
[in] | iViewDirection | The view direction (perpendicular to the created picture). |
[in] | iHorizontalNormal | The horizontal direction. |
[in] | iUpperLeftCorner | The upper left corner of the image. |
[in] | iBackgroundColor | The background color -> iBackgroundColor = ColBlue * 2^16 + ColGreen * 2^8 + ColRed. |
[in] | iWidthInDocumentUnit | The width of the image, in the document unit. |
[in] | iHeightInDocumentUnit | The height of the image, in the document unit. |
[in] | iPixelSize | Size of a single pixel, in the document unit. |
[in] | iPointAndLineSize | The point and line factor size. This factor applies to the resulting image pixels, and thus depends on iPixelSize. |
|
staticslot |
Convert dynamic textures from a poly to scene images.
Array.ErrorCode | The error code:
|
Array.ImageTbl | The images extracted from the texture. |
[in] | iPoly | poly to extract texture from |
|
staticslot |
Function to import an image, and create a new SImage from file. The function automatically detects image type (ortho, perspective...) and loads calibration or georeferencing information. The image type can also be forced by using the SImageType in input. If ABSTRACT type is set, the automatically image type detected won't be changed. File extensions authorized: .bmp, .tif, .jpg, .png, .gif.
Array.ErrorCode | The error code:
|
Array.Image | The image. |
[in] | iFileName | path and name of the image file to import |
[in] | iImageType | the image type, ABSTRACT by default |
|
inlinestaticslot |
Search all the component with the given name.
Array | all the SImage with the given name |
|
staticslot |
Function to import images from a Pix4D project.
Array.ErrorCode | The error code:
|
Array.ImageTbl | The images. |
[in] | iFileName | path and name of the .p4d file to read |
|
staticslot |
Function to get selected images.
Array | of selected SImage |
|
slot |
Get external camera parameters of perspective and spherical images.
Array.ErrorCode | The error code:
|
Array.CameraExternal | The camera external parameters SCameraExternal |
|
slot |
Get internal camera parameters of a perspective image.
Array.ErrorCode | The error code:
|
Array.CameraInternal | The camera internal parameters SCameraInternal |
|
slot |
Get image type.
Array.ImageType | The image type |
|
slot |
Get ortho image parameters.
Array.ErrorCode | The error code:
|
Array.Point | The top left corner of the ortho image |
Array.RotZ | The rotation of the ortho image in degrees |
Array.Length | The pixel size in document unit |
|
slot |
Go to the camera viewpoint.
|
staticslot |
|
slot |
Set external camera parameters for perspective and spherical images.
Array.ErrorCode | The error code:
|
[in] | iExternalParams | camera external parameters |
|
slot |
Set internal camera parameters for a perspective image.
Array.ErrorCode | The error code:
|
[in] | iInternalParams | camera internal parameters |
|
slot |
Set ortho image parameters.
Array.ErrorCode | The error code:
|
[in] | iPosition | insertion point (top left corner) |
[in] | iRotation | rotation value in degrees |
[in] | iPixelSize | pixel size of the ortho image in document unit |
|
staticslot |
Texture a mesh with images.
Array.ErrorCode | The error code:
|
Array.Poly | The textured mesh. |
[in] | ioPoly | poly to texture |
[in] | iImgTbl | images |
[in] | iVisibilityOption | triangles that will be textured
|
[in] | iImageOption | used if iImgTbl contains more that 1 image
|
[in] | iExistingOption | used if the poly is already textured
|
|
slot |
Get the type of the variable.
|
slot |
Get the type of the variable.