![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include "E57Filter.h"#include "FileIO.h"#include "E57Header.h"#include <E57Format.h>#include <ecvCameraSensor.h>#include <ecvColorScalesManager.h>#include <ecvGBLSensor.h>#include <ecvImage.h>#include <ecvPointCloud.h>#include <ecvProgressDialog.h>#include <ecvScalarField.h>#include <QApplication>#include <QBuffer>#include <QUuid>#include <cassert>#include <string>Typedefs | |
| using | colorFieldType = double |
Functions | |
| static void | SavePoseInformation (e57::StructureNode &parentNode, const e57::ImageFile &imf, const ccGLMatrixd &poseMat) |
| static bool | SaveScan (ccPointCloud *cloud, e57::StructureNode &scanNode, e57::ImageFile &imf, e57::VectorNode &data3D, QString &guidStr, ecvProgressDialog *progressDlg=nullptr) |
| void | SaveImage (const ccImage *image, const QString &scanGUID, e57::ImageFile &imf, e57::VectorNode &images2D) |
| static bool | NodeStructureToTree (ccHObject *currentTreeNode, const e57::Node ¤tE57Node) |
| static void | NodeToConsole (const e57::Node &node) |
| static bool | ChildNodeToConsole (const e57::Node &node, const char *childName) |
| static void | DecodePrototype (const e57::StructureNode &scan, const e57::StructureNode &proto, E57ScanHeader &header) |
| static bool | GetPoseInformation (const e57::StructureNode &node, ccGLMatrixd &poseMat) |
| static ccHObject * | LoadScan (const e57::Node &node, QString &guidStr, ecvProgressDialog *progressDlg=nullptr) |
| static ccHObject * | LoadImage (const e57::Node &node, QString &associatedData3DGuid) |
| using colorFieldType = double |
|
static |
References NodeToConsole(), and CVLog::Warning().
Referenced by E57Filter::loadFile().
|
static |
References PointStandardizedFieldsAvailable::angleMaximum, PointStandardizedFieldsAvailable::angleMinimum, PointStandardizedFieldsAvailable::angleScaledInteger, PointStandardizedFieldsAvailable::cartesianInvalidStateField, PointStandardizedFieldsAvailable::cartesianXField, PointStandardizedFieldsAvailable::cartesianYField, PointStandardizedFieldsAvailable::cartesianZField, PointStandardizedFieldsAvailable::colorBlueField, ColorLimits::colorBlueMaximum, ColorLimits::colorBlueMinimum, PointStandardizedFieldsAvailable::colorGreenField, ColorLimits::colorGreenMaximum, ColorLimits::colorGreenMinimum, E57ScanHeader::colorLimits, PointStandardizedFieldsAvailable::colorRedField, ColorLimits::colorRedMaximum, ColorLimits::colorRedMinimum, PointStandardizedFieldsAvailable::columnIndexField, PointStandardizedFieldsAvailable::columnIndexMaximum, PointStandardizedFieldsAvailable::intensityField, E57ScanHeader::intensityLimits, IntensityLimits::intensityMaximum, IntensityLimits::intensityMinimum, PointStandardizedFieldsAvailable::intensityScaledInteger, PointStandardizedFieldsAvailable::isColorInvalidField, PointStandardizedFieldsAvailable::isIntensityInvalidField, PointStandardizedFieldsAvailable::isTimeStampInvalidField, PointStandardizedFieldsAvailable::normRangeMaximum, PointStandardizedFieldsAvailable::normRangeMinimum, PointStandardizedFieldsAvailable::normRangeScaledInteger, PointStandardizedFieldsAvailable::normXField, PointStandardizedFieldsAvailable::normYField, PointStandardizedFieldsAvailable::normZField, offset, E57ScanHeader::pointFields, PointStandardizedFieldsAvailable::pointRangeMaximum, PointStandardizedFieldsAvailable::pointRangeMinimum, PointStandardizedFieldsAvailable::pointRangeScaledInteger, PointStandardizedFieldsAvailable::returnCountField, PointStandardizedFieldsAvailable::returnIndexField, PointStandardizedFieldsAvailable::returnMaximum, PointStandardizedFieldsAvailable::rowIndexField, PointStandardizedFieldsAvailable::rowIndexMaximum, PointStandardizedFieldsAvailable::sphericalAzimuthField, PointStandardizedFieldsAvailable::sphericalElevationField, PointStandardizedFieldsAvailable::sphericalInvalidStateField, PointStandardizedFieldsAvailable::sphericalRangeField, PointStandardizedFieldsAvailable::timeMaximum, and PointStandardizedFieldsAvailable::timeStampField.
Referenced by LoadScan().
|
static |
|
static |
References ccHObject::addChild(), ccCameraSensor::IntrinsicParameters::arrayHeight, ccCameraSensor::IntrinsicParameters::arrayWidth, ccCameraSensor::ComputeFovRadFromFocalMm(), ccCameraSensor::ConvertFocalMMToPix(), ccGLMatrixTpl< T >::data(), E57_CYLINDRICAL, E57_JPEG_IMAGE, E57_NO_IMAGE, E57_NO_PROJECTION, E57_PINHOLE, E57_PNG_IMAGE, E57_SPHERICAL, E57_VISUAL, PinholeRepresentation::focalLength, ccImage::getAspectRatio(), GetPoseInformation(), CameraRepresentation::getType(), VisualReferenceRepresentation::imageHeight, VisualReferenceRepresentation::imageMaskSize, VisualReferenceRepresentation::imageSize, VisualReferenceRepresentation::imageType, VisualReferenceRepresentation::imageWidth, name, SphericalRepresentation::pixelHeight, ccCameraSensor::IntrinsicParameters::pixelSize_mm, SphericalRepresentation::pixelWidth, ccCameraSensor::IntrinsicParameters::principal_point, PinholeRepresentation::principalPointX, PinholeRepresentation::principalPointY, CylindricalRepresentation::principalPointY, CVLog::Print(), CylindricalRepresentation::radius, ccImage::setAspectRatio(), ccImage::setAssociatedSensor(), ccImage::setData(), ccObject::setEnabled(), ccObject::setName(), ccSensor::setRigidTransformation(), ccDrawableObject::setVisible(), ccCameraSensor::IntrinsicParameters::vertFocal_pix, ccCameraSensor::IntrinsicParameters::vFOV_rad, and CVLog::Warning().
Referenced by E57Filter::loadFile().
|
static |
References ccColorScalesManager::ABS_NORM_GREY, ccHObject::addChild(), ccPointCloud::addNorm(), cloudViewer::PointCloudTpl< T >::addPoint(), ccPointCloud::addRGBColor(), ccPointCloud::addScalarField(), ccHObject::applyGLTransformation_recursive(), ecvColor::RgbTpl< Type >::b, PointStandardizedFieldsAvailable::cartesianInvalidStateField, PointStandardizedFieldsAvailable::cartesianXField, PointStandardizedFieldsAvailable::cartesianYField, PointStandardizedFieldsAvailable::cartesianZField, PointStandardizedFieldsAvailable::colorBlueField, ColorLimits::colorBlueMaximum, ColorLimits::colorBlueMinimum, PointStandardizedFieldsAvailable::colorGreenField, ColorLimits::colorGreenMaximum, ColorLimits::colorGreenMinimum, E57ScanHeader::colorLimits, PointStandardizedFieldsAvailable::colorRedField, ColorLimits::colorRedMaximum, ColorLimits::colorRedMinimum, ccScalarField::computeMinAndMax(), ccGLMatrixTpl< T >::data(), DecodePrototype(), CVLog::Error(), cloudViewer::ScalarField::flagValueAsInvalid(), Vector3Tpl< PointCoordinateType >::fromArray(), ecvColor::RgbTpl< Type >::g, ccColorScalesManager::GetDefaultScale(), cloudViewer::BoundingBoxTpl< T >::getDiagNorm(), cloudViewer::ScalarField::getMax(), cloudViewer::ScalarField::getMin(), cloudViewer::ScalarField::getName(), ccGenericPointCloud::getOwnBB(), GetPoseInformation(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), ccGLMatrixTpl< T >::getTranslationAsVec3D(), ccColorScalesManager::GREY, FileIOFilter::HandleGlobalShift(), PointStandardizedFieldsAvailable::intensityField, PointStandardizedFieldsAvailable::isIntensityInvalidField, Vector3Tpl< Type >::normalize(), PointStandardizedFieldsAvailable::normXField, PointStandardizedFieldsAvailable::normYField, PointStandardizedFieldsAvailable::normZField, cloudViewer::NormalizedProgress::oneStep(), E57ScanHeader::pointFields, points, CVLog::Print(), ecvColor::RgbTpl< Type >::r, CCShareable::release(), ccPointCloud::reserve(), ccPointCloud::reserveTheNormsTable(), ccPointCloud::reserveTheRGBTable(), ccHObject::resetGLTransformationHistory_recursive(), ccPointCloud::resize(), cloudViewer::ScalarField::resizeSafe(), PointStandardizedFieldsAvailable::returnIndexField, PointStandardizedFieldsAvailable::returnMaximum, s_loadParameters, ccScalarField::setColorScale(), ccPointCloud::setCurrentDisplayedScalarField(), ccObject::setEnabled(), ccShiftedObject::setGlobalShift(), ccSensor::setGraphicScale(), ccObject::setMetaData(), ccObject::setName(), ccSensor::setRigidTransformation(), ccGLMatrixTpl< T >::setTranslation(), cloudViewer::ScalarField::setValue(), ccDrawableObject::setVisible(), ccDrawableObject::showColors(), ccDrawableObject::showNormals(), ccDrawableObject::showSF(), size, PointStandardizedFieldsAvailable::sphericalAzimuthField, PointStandardizedFieldsAvailable::sphericalElevationField, PointStandardizedFieldsAvailable::sphericalInvalidStateField, PointStandardizedFieldsAvailable::sphericalRangeField, ccGLMatrixTpl< T >::toString(), CVLog::Warning(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by E57Filter::loadFile().
|
static |
References ccHObject::addChild(), name, and ccObject::setName().
Referenced by E57Filter::loadFile().
|
static |
References CVLog::Print().
Referenced by ChildNodeToConsole().
| void SaveImage | ( | const ccImage * | image, |
| const QString & | scanGUID, | ||
| e57::ImageFile & | imf, | ||
| e57::VectorNode & | images2D | ||
| ) |
References CV_TYPES::CALIBRATED_IMAGE, ccGLMatrixTpl< T >::data(), ccSensor::getActiveAbsoluteTransformation(), image, and SavePoseInformation().
Referenced by E57Filter::saveToFile().
|
static |
References ccGLMatrixTpl< T >::data(), ccGLMatrixTpl< T >::getTranslation(), rotation, and cloudViewer::SquareMatrixTpl< Scalar >::toQuaternion().
Referenced by SaveImage(), and SaveScan().
|
static |
This prototype will be used in creating the points CompressedVector.
If this vector is empty, it is assumed that all fields will use the BitPack codec.
We use the prototype and empty codecs tree from above.
References ecvColor::RgbTpl< Type >::b, FileIO::createdBy(), cloudViewer::ScalarField::currentSize(), ccGLMatrixTpl< T >::data(), CVLog::Error(), Vector3Tpl< double >::fromArray(), ccGLMatrixTpl< double >::FromString(), ecvColor::RgbTpl< Type >::g, ccPointCloud::getCurrentDisplayedScalarFieldIndex(), ccShiftedObject::getGlobalScale(), ccShiftedObject::getGlobalShift(), ccHObject::getGLTransformationHistory(), cloudViewer::ScalarField::getMax(), ccObject::getMetaData(), cloudViewer::ScalarField::getMin(), ccObject::getName(), ccShiftedObject::getOwnGlobalBB(), ccPointCloud::getPointColor(), ccPointCloud::getPointNormal(), cloudViewer::PointCloudTpl< T >::getPointPersistentPtr(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), cloudViewer::PointCloudTpl< T >::getScalarFieldName(), ccGLMatrixTpl< T >::getTranslationAsVec3D(), cloudViewer::ScalarField::getValue(), ccPointCloud::hasColors(), ccPointCloud::hasNormals(), ccGLMatrixTpl< T >::inverse(), Vector3Tpl< Type >::norm2d(), cloudViewer::NormalizedProgress::oneStep(), points, CVLog::Print(), ecvColor::RgbTpl< Type >::r, SavePoseInformation(), ccGLMatrixTpl< T >::setTranslation(), cloudViewer::PointCloudTpl< T >::size(), Tuple3Tpl< Type >::u, cloudViewer::ScalarField::ValidValue(), CVLog::Warning(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by E57Filter::saveToFile().