#include <SENSiOSARKit.h>
Definition at line 8 of file SENSiOSARKit.h.
◆ SENSiOSARKit()
| SENSiOSARKit::SENSiOSARKit |
( |
| ) |
|
Definition at line 3 of file SENSiOSARKit.mm.
bool isAvailable() override
bool init(unsigned int textureId=0, bool retrieveCpuImg=false, int targetWidth=-1) override
SENSiOSARCoreDelegate * _arcoreDelegate
◆ ~SENSiOSARKit()
| SENSiOSARKit::~SENSiOSARKit |
( |
| ) |
|
|
inline |
◆ captureProperties()
Get SENSCaptureProps which contains necessary information about all available camera devices and their capabilities.
Implements SENSCamera.
Definition at line 108 of file SENSiOSARKit.mm.
SENSCaptureProps _captureProperties
void retrieveCaptureProperties()
◆ init()
| bool SENSiOSARKit::init |
( |
unsigned int |
textureId = 0, |
|
|
bool |
retrieveCpuImg = false, |
|
|
int |
targetWidth = -1 |
|
) |
| |
|
overridevirtual |
◆ install()
| bool SENSiOSARKit::install |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isAvailable()
| bool SENSiOSARKit::isAvailable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isInstalled()
| bool SENSiOSARKit::isInstalled |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isReady()
| bool SENSiOSARKit::isReady |
( |
| ) |
|
|
overridevirtual |
◆ pause()
| void SENSiOSARKit::pause |
( |
| ) |
|
|
overridevirtual |
◆ reset()
| void SENSiOSARKit::reset |
( |
| ) |
|
|
overridevirtual |
◆ resume()
| bool SENSiOSARKit::resume |
( |
| ) |
|
|
overridevirtual |
◆ retrieveCaptureProperties()
| void SENSiOSARKit::retrieveCaptureProperties |
( |
| ) |
|
|
private |
Definition at line 75 of file SENSiOSARKit.mm.
92 std::string deviceId =
"ARKit";
95 float focalLengthPix = -1.f;
96 if (!
_frame->intrinsics.empty())
98 focalLengthPix = 0.5 * (
_frame->intrinsics.at<
double>(0, 0) +
_frame->intrinsics.at<
double>(1, 1));
101 devProp.add(
_frame->imgBGR.cols,
_frame->imgBGR.rows, focalLengthPix);
105 Utils::warnMsg(
"SENSiOSARKit",
"retrieveCaptureProperties: Could not retrieve a valid frame!", __LINE__, __FILE__);
SENSCameraFacing
Definition of camera facing.
High Resolution Timer class using C++11.
SENSFrameBasePtr _frame
current frame
bool update(cv::Mat &pose) override
void warnMsg(const char *tag, const char *msg, const int line, const char *file)
Platform independent warn message output.
◆ start()
Call this function to configure the camera if you exactly know, what device you want to open and with which stream configuration. You can find out these properties by using SENSCaptureProps object (see getCaptureProperties())
- Parameters
-
| deviceId | camera device id to start |
| streamConfig | SENSCameraStreamConfig from camera device. This defines the size of the image. The image is converted to BGR and assigned to SENSFrame::imgBGR. |
| provideIntrinsics | specifies if intrinsics estimation should be enabled. The estimated intrinsics are transferred with every SENSFrame as they may be different for every frame (e.g. on iOS). This value has different effects on different architectures. |
- Returns
- the found configuration that is adjusted and used when SENSCamera::start() is called.
Implements SENSCamera.
Definition at line 118 of file SENSiOSARKit.mm.
SENSCameraConfig _config
indicates what is currently running
void processStart()
call from start function to do startup preprocessing
const SENSCameraFacing & facing() const
bool containsDeviceId(const std::string &deviceId) const
const SENSCameraDeviceProps * camPropsForDeviceId(const std::string &deviceId) const
◆ stop()
| void SENSiOSARKit::stop |
( |
| ) |
|
|
inlineoverridevirtual |
◆ update()
| bool SENSiOSARKit::update |
( |
cv::Mat & |
view | ) |
|
|
overridevirtual |
Returns true if in tracking state. If correctly initialized, it will update the camera frame that may be retrieved with latestFrame()
Reimplemented from SENSARBaseCamera.
Definition at line 54 of file SENSiOSARKit.mm.
68 updateFrame(imgBGR, intrinsic,
true, imgBGR.cols, imgBGR.rows);
SENSFrameBasePtr latestFrame() override
Get the latest captured frame. If no frame was captured the frame will be empty (null).
void updateFrame(cv::Mat bgrImg, cv::Mat intrinsics, int width, int height, bool intrinsicsChanged)
void log(const char *tag, const char *format,...)
logs a formatted string platform independently
◆ _arcoreDelegate
◆ _available
| bool SENSiOSARKit::_available = false |
|
private |
The documentation for this class was generated from the following files: