Classes | Functions | Variables
rgb_rotate_warp.cpp File Reference
#include <iostream>
#include "depthai/depthai.hpp"
#include "utility.hpp"
Include dependency graph for rgb_rotate_warp.cpp:

Go to the source code of this file.

Classes

struct  warpFourPointTest
 

Functions

int main ()
 
void printControls ()
 

Variables

static constexpr auto keyResizeInc = 'v'
 
static constexpr auto keyRotateDecr = 'z'
 
static constexpr auto keyRotateIncr = 'x'
 
static constexpr auto keyWarpTestCycle = 'c'
 
static const dai::Point2f P0 = {0, 0}
 
static const dai::Point2f P1 = {1, 0}
 
static const dai::Point2f P2 = {1, 1}
 
static const dai::Point2f P3 = {0, 1}
 
static constexpr auto RESIZE_FACTOR_MAX = 5
 
static constexpr auto RESIZE_MAX_H = 600
 
static constexpr auto RESIZE_MAX_W = 800
 
static constexpr auto ROTATE_RATE_INC = 0.1f
 
static constexpr auto ROTATE_RATE_MAX = 5.0f
 
std::vector< warpFourPointTestwarpList
 

Function Documentation

◆ main()

int main ( )

Definition at line 57 of file rgb_rotate_warp.cpp.

◆ printControls()

void printControls ( )

Definition at line 11 of file rgb_rotate_warp.cpp.

Variable Documentation

◆ keyResizeInc

constexpr auto keyResizeInc = 'v'
staticconstexpr

Definition at line 8 of file rgb_rotate_warp.cpp.

◆ keyRotateDecr

constexpr auto keyRotateDecr = 'z'
staticconstexpr

Definition at line 6 of file rgb_rotate_warp.cpp.

◆ keyRotateIncr

constexpr auto keyRotateIncr = 'x'
staticconstexpr

Definition at line 7 of file rgb_rotate_warp.cpp.

◆ keyWarpTestCycle

constexpr auto keyWarpTestCycle = 'c'
staticconstexpr

Definition at line 9 of file rgb_rotate_warp.cpp.

◆ P0

const dai::Point2f P0 = {0, 0}
static

Definition at line 33 of file rgb_rotate_warp.cpp.

◆ P1

const dai::Point2f P1 = {1, 0}
static

Definition at line 34 of file rgb_rotate_warp.cpp.

◆ P2

const dai::Point2f P2 = {1, 1}
static

Definition at line 35 of file rgb_rotate_warp.cpp.

◆ P3

const dai::Point2f P3 = {0, 1}
static

Definition at line 36 of file rgb_rotate_warp.cpp.

◆ RESIZE_FACTOR_MAX

constexpr auto RESIZE_FACTOR_MAX = 5
staticconstexpr

Definition at line 25 of file rgb_rotate_warp.cpp.

◆ RESIZE_MAX_H

constexpr auto RESIZE_MAX_H = 600
staticconstexpr

Definition at line 24 of file rgb_rotate_warp.cpp.

◆ RESIZE_MAX_W

constexpr auto RESIZE_MAX_W = 800
staticconstexpr

Definition at line 23 of file rgb_rotate_warp.cpp.

◆ ROTATE_RATE_INC

constexpr auto ROTATE_RATE_INC = 0.1f
staticconstexpr

Definition at line 21 of file rgb_rotate_warp.cpp.

◆ ROTATE_RATE_MAX

constexpr auto ROTATE_RATE_MAX = 5.0f
staticconstexpr

Definition at line 20 of file rgb_rotate_warp.cpp.

◆ warpList

std::vector<warpFourPointTest> warpList
Initial value:
= {
{{P0, P1, P2, P3}, true, "1. passthrough"},
{{P3, P0, P1, P2}, true, "2. rotate 90"},
{{P2, P3, P0, P1}, true, "3. rotate 180"},
{{P1, P2, P3, P0}, true, "4. rotate 270"},
{{P1, P0, P3, P2}, true, "5. horizontal mirror"},
{{P3, P2, P1, P0}, true, "6. vertical flip"},
{{{-0.1f, -0.1f}, {1.1f, -0.1f}, {1.1f, 1.1f}, {-0.1f, 1.1f}}, true, "7. add black borders"},
{{{-0.3f, 0}, {1, 0}, {1.3f, 1}, {0, 1}}, true, "8. parallelogram transform"},
{{{-0.2f, 0}, {1.8f, 0}, {1, 1}, {0, 1}}, true, "9. trapezoid transform"},
}

Definition at line 43 of file rgb_rotate_warp.cpp.

P3
static const dai::Point2f P3
Definition: rgb_rotate_warp.cpp:36
P2
static const dai::Point2f P2
Definition: rgb_rotate_warp.cpp:35
P1
static const dai::Point2f P1
Definition: rgb_rotate_warp.cpp:34
P0
static const dai::Point2f P0
Definition: rgb_rotate_warp.cpp:33


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20