Go to the documentation of this file.
11 using namespace std::chrono;
12 using namespace std::chrono_literals;
21 const int originalWidth = 640, originalHeight = 360;
22 const int width = 337, height = 225;
26 xout->setStreamName(
"out");
27 imageManip->initialConfig.setResize(width, height);
30 xin->
out.
link(imageManip->inputImage);
31 imageManip->
out.
link(xout->input);
40 for(
int i = 0; i < 10; i++) {
43 inFrame.
getData().resize(originalWidth * originalHeight * 3);
55 if(outFrame->getWidth() != width || outFrame->getHeight() != height) {
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
std::vector< std::uint8_t > & getData() const
Get non-owning reference to internal buffer.
ImgFrame & setWidth(unsigned int width)
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
std::shared_ptr< N > create()
ImageManip node. Capability to crop, resize, warp, ... incoming image frames.
ImgFrame & setType(Type type)
ImgFrame & setHeight(unsigned int height)
XLinkIn node. Receives messages over XLink.
std::shared_ptr< DataInputQueue > getInputQueue(const std::string &name)
void link(const Input &in)
void setStreamName(const std::string &name)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19