This class is only available if you have the Survey plugin.
.
More...
#include <SImage.h>
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... | |
Array | ClearMask () |
Clear the link between and image and its texture mask. More... | |
static Array | ConvertColorToTexture (SPoly ioPoly, Number iPixelPerTriangle, Boolean iIsUpdateOnlyTriWithoutTexture) |
Converts colors/inspections of a mesh into texture. More... | |
static Array | ConvertTextureMapsToAtlas (SPoly ioPoly) |
Converts all the texture maps of a mesh into one (or several) texture atlas. More... | |
Array | CreateMaskAuto () |
Create an automatic mask from the SImage. More... | |
Array | EstimatePose (Array< SPoint > iCrdModel3D, Array< SPoint > iCrdUVImage, EstimatePoseConstraintEnum iContraints=CONSTRAINT_NONE) |
Estimate the pose of an image using reference points. More... | |
static Array | EstimatePose (SImage iImageToEstimate, Array< SPoint > iCrdModel3D, Array< SPoint > iCrdUVImage, Array iOptions) |
Estimate the pose of an image using reference points. More... | |
static Array | EstimatePose (SImage iImageToEstimate, String iPath, Array iOptions) |
Estimate the pose of an image using reference points from a file. More... | |
Array | EstimatePose (String iPath) |
Estimate the pose of an image using reference points stored in a file. More... | |
Array | EstimatePoseFromFile (String iPath, 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) |
Converts dynamic textures from a mesh 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 iName) |
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... | |
Boolean | HasMask () |
Return if the SImage has a mask or not. 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 | SetMaskFromFile (String iMaskFilePath) |
Set the texture mask of the SImage from a file. File extensions authorized: .bmp, .tif, .jpg, .png, .gif. The texture mask image must have the same size as the current image. More... | |
Array | SetOrthoParameters (SPoint iPosition, Number iRotation, Number iPixelSize) |
Set ortho image parameters. More... | |
static Array | SphericalFromPerspectiveImages (Array< SImage > iImages, Number iClusteringDistance, SCloud iCloud) |
Convert perspective images to spherical images. More... | |
static Array | TextureMesh (SPoly iPoly, Array< SImage > iImgTbl, Number iVisibilityOption, Number iImageOption, Number iExistingOption) |
Textures 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 () |
Launches a click interaction to select a 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 () |
The component containing folder's name. More... | |
String | GetName () |
The component's name. More... | |
String | GetPath () |
To get the full path of a comp in the tree. More... | |
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 |
|
slot |
Clear the link between and image and its texture mask.
Array.ErrorCode | The error code
|
|
staticslot |
Converts colors/inspections of a mesh into texture.
Array.ErrorCode | The error code:
|
[in,out] | ioPoly | Mesh to convert |
[in] | iPixelPerTriangle | Number of pixels per triangle to create the texture value (between 4 and 32) |
[in] | iIsUpdateOnlyTriWithoutTexture | If true: updates only triangles that are not already textured |
|
staticslot |
Converts all the texture maps of a mesh into one (or several) texture atlas.
Array.ErrorCode | The error code:
|
[in,out] | ioPoly | Mesh to convert |
|
slot |
Create an automatic mask from the SImage.
Array.ErrorCode | The error code
|
|
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 |
|
staticslot |
Estimate the pose of an image using reference points.
Array.Value | The sum of the residual re-projection errors. |
Array.ErrorCode | The error code of the computation:
|
Array.Image | The image with its new estimated pose. |
[in] | iImageToEstimate | The image to estimate the pose of. |
[in] | iCrdModel3D | The 3D coordinates. |
[in] | iCrdUVImage | The Texture UV coordinates. |
[in] | iOptions | Data structure containing computation options. This data structure have to contain the following fields:
|
|
staticslot |
Estimate the pose of an image using reference points from a file.
Array.Value | The sum of the residual re-projection errors. |
Array.ErrorCode | The error code of the computation:
|
Array.Image | The image with its new estimated pose. |
[in] | iImageToEstimate | The image to estimate the pose of. |
[in] | iPath | The path of the file where reference points are stored. |
[in] | iOptions | Data structure containing computation options. This data structure have to contain the following fields:
|
|
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 | Line width, point size and font size scale by this factor. This factor applies to the resulting image pixels, and thus depends on iPixelSize. |
|
inlinestaticslot |
Converts dynamic textures from a mesh to scene images.
Array.ErrorCode | The error code:
|
Array.ImageTbl | The images extracted from the texture. |
[in] | iPoly | Mesh 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.
|
slot |
Return if the SImage has a mask or not.
|
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 the texture mask of the SImage from a file.
File extensions authorized: .bmp, .tif, .jpg, .png, .gif.
The texture mask image must have the same size as the current image.
[in] | iMaskFilePath | The path of the file that contains the mask to apply |
Array.ErrorCode | The error code
|
|
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 |
Convert perspective images to spherical images.
Array.ImageTbl | The spherical images. |
Array.IndicesTbl | The indices of the inputs images used to create each spherical image. |
Array.ErrorCode | The error code:
|
[in] | iImages | Images to convert. |
[in] | iClusteringDistance | Distance used to group images according to their positions. |
[in] | iCloud | Optional cloud to improve image quality by computing a depth information. |
|
staticslot |
Textures a mesh with images.
Array.ErrorCode | The error code:
|
Array.Poly | The textured mesh. |
[in] | iPoly | Mesh to texture |
[in] | iImgTbl | Table of images used for texturing |
[in] | iVisibilityOption | Triangles that will be textured
|
[in] | iImageOption | Used if iImgTbl contains more than 1 image
|
[in] | iExistingOption | Used if the mesh is already textured
|
|
slot |
Get the type of the variable.
|
slot |
Get the type of the variable.