|
Object | ClearMask () |
| Clear the link between a SImage and its texture mask. More...
|
|
Object | CreateMaskAuto () |
| Create an automatic mask from the SImage. More...
|
|
Object | GetCameraExternalParameters () |
| Get the external camera parameters of perspective and spherical SImage. More...
|
|
Object | GetCameraInternalParameters () |
| Get the internal camera parameters of a perspective SImage. More...
|
|
Object | GetImageType () |
| Get the type of the SImage. More...
|
|
Object | GetOrthoParameters () |
| Get the ortho SImage parameters. More...
|
|
Object | GoToCameraViewpoint () |
| Go to the camera viewpoint. More...
|
|
boolean | HasMask () |
| Return if the SImage has a mask or not. More...
|
|
Object | Save (string filePath, SMatrix coordinateSystemMatrix=SMatrix()) |
| Save the image into a file. More...
|
|
Object | SetCameraExternalParameters (SCameraExternal externalParams) |
| Set the external camera parameters for perspective and spherical SImage. More...
|
|
Object | SetCameraInternalParameters (SCameraInternal internalParams) |
| Set the internal camera parameters for a perspective SImage. More...
|
|
Object | SetMaskFromFile (string maskFilePath) |
| Set the texture mask of the SImage from a file.
File extensions authorized: .bmp, .tif, .jpg, .png.
The texture mask image must have the same size as the current image. More...
|
|
Object | SetOrthoParameters (SPoint position, number rotation, number pixelSize) |
| Set the ortho SImage parameters. More...
|
|
| SImage (SImage other, SImageType imageType=SImage.ABSTRACT) |
| Construct a SImage by copying the SImage other and setting the SImage.SImageType in input. If ABSTRACT type is set, the image type of the SImage other is used. More...
|
|
string | toString () |
| Get the type of the variable. More...
|
|
| AddToDoc () |
| Add the object to the document. More...
|
|
| ApplyTransformation (SMatrix matrix) |
| Apply a geometric transformation to the current object by making a product with the given matrix. More...
|
|
Object | GetBoundingBox (SMatrix ucs=null) |
| Calculate the bounding box of the object. More...
|
|
Object | GetColors () |
| Get the colors of the object. More...
|
|
string | GetFolderName () |
| Get the name of the folder containing the object. More...
|
|
string | GetName () |
| Return the object's name. More...
|
|
string | GetPath () |
| Return the full path of a SComp in the tree. More...
|
|
| Invert () |
| Invert the normal of the object. More...
|
|
boolean | IsInDoc () |
| Return if the object is in the document or not. More...
|
|
boolean | IsVisible () |
| Get the visibility of the object. More...
|
|
| MoveToGroup (string groupPath, boolean moveInsideTopParent=true) |
| 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 () |
| Remove the object from the document. More...
|
|
| SetClippable (boolean clipping) |
| Set clippable or not. More...
|
|
| SetColors (number red, number green, number blue) |
| Set the colors of the object. More...
|
|
| SetName (string objectName) |
| Set the object's name. More...
|
|
| SetTransparency (number alpha) |
| Set the transparency of the object. More...
|
|
| SetVisibility (boolean visible) |
| Set the object to be visible, or not visible. More...
|
|
string | toString () |
| Get the type of the variable. More...
|
|
| Translate (SVector vector) |
| Make a translation of the current object with an SVector. More...
|
|
|
static Array< SImage > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the SImage in the document. More...
|
|
static Object | EstimatePose (SImage imageToEstimate, Array< SPoint > crdModel3D, Array< SPoint > crdUVImage, Object options) |
| Estimate the pose of a SImage using reference points. More...
|
|
static Object | EstimatePose (SImage imageToEstimate, string path, Object options) |
| Estimate the pose of a SImage using reference points from a file. More...
|
|
static Object | ExportOrthoImage (string outputFilePath, SVector viewDirection, SVector horizontalNormal, SPoint upperLeftCorner, number backgroundColor, number widthInDocumentUnit, number heightInDocumentUnit, number pixelSize, number pointAndLineSize) |
| Export an ortho SImage and create a georeferencing file. More...
|
|
static Object | FromFile (string fileName, number imageType=0) |
| Import an image and create a new SImage from a file.
The function automatically detects image type (spherical, ortho, perspective, abstract) and loads calibration or georeferencing information.
The image type can also be forced by using the SImage.SImageType in input. If SImage.ABSTRACT type is set, the automatically detected image type won't be changed.
File extensions authorized: .bmp, .tif, .jpg, .png. More...
|
|
static Array< SImage > | FromName (string name) |
| Search all the SImage with the given name. More...
|
|
static Object | FromPix4DProject (string fileName) |
| Import SImage from a Pix4D project. More...
|
|
static Array< SImage > | FromSel () |
| Get all the selected SImage. More...
|
|
static SImage | New (SImage other, SImageType imageType=SImage.ABSTRACT) |
| Construct a SImage by copying the SImage other and setting the SImage.SImageType in input. If ABSTRACT type is set, the image type of the SImage other is used. More...
|
|
static Object | SphericalFromPerspectiveImages (Array< SImage > images, number clusteringDistance, SCloud cloud=null) |
| Convert perspective SImage to spherical SImage. More...
|
|
static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the SComp in the document. More...
|
|
static Object | FromClick () |
| Launch an interaction to select a SComp in the scene. More...
|
|
static Array< SComp > | FromName (string name) |
| Search all the SComp with the given name. More...
|
|
static Array< SComp > | FromSel () |
| Get all the selected SComp. More...
|
|
Provide image edition methods.
Requires the Survey license.
static Object SImage::FromFile |
( |
string |
fileName, |
|
|
number |
imageType = 0 |
|
) |
| |
|
static |
Import an image and create a new SImage from a file.
The function automatically detects image type (spherical, ortho, perspective, abstract) and loads calibration or georeferencing information.
The image type can also be forced by using the SImage.SImageType in input. If SImage.ABSTRACT type is set, the automatically detected image type won't be changed.
File extensions authorized: .bmp, .tif, .jpg, .png.
- Note
- If a world file having the same name as the image is present in the same folder, georeferencing information will be associated to the image.
If the image is a geotif, the georeferencing will be read.
If a .xml or a.incam file having the same name as the image is present in the same folder, calibration information will be associated to the image.
If only one .xml or a.incam file is present in the same folder, calibration information will be associated to the image.
If a .excam file having the same name as the image is present in the same folder, external parameters will be associated to the image.
- Parameters
-
fileName | (string) The path and name of the image file to import |
imageType | (number) The image type |
- Return values
-
ret.ErrorCode | (number) The error code
- 0: No error
- 1: An error occurred
|
ret.Image | (SImage) The SImage |