YARP
Yet Another Robot Platform
Image.cpp File Reference
#include <yarp/sig/Image.h>
#include <yarp/os/Bottle.h>
#include <yarp/os/ConnectionReader.h>
#include <yarp/os/ConnectionWriter.h>
#include <yarp/os/Log.h>
#include <yarp/os/Time.h>
#include <yarp/os/Vocab.h>
#include <yarp/sig/ImageNetworkHeader.h>
#include <yarp/sig/impl/IplImage.h>
#include <yarp/sig/impl/DeBayer.h>
#include <cstdio>
#include <cstring>
#include <string>
+ Include dependency graph for Image.cpp:

Go to the source code of this file.

Classes

class  ImageStorage
 
struct  pixelTypeIplParams
 

Macros

#define DBGPF1   if (0)
 

Functions

bool readFromConnection (Image &dest, ImageNetworkHeader &header, ConnectionReader &connection)
 This helper function groups code to avoid duplication. More...
 

Variables

const pixelTypeIplParams iplPixelTypeMono {1, 8 , "GRAY", "GRAY"}
 
const pixelTypeIplParams iplPixelTypeMono16 {1, 16 , "GRAY", "GRAY"}
 
const std::map< int, pixelTypeIplParamspixelCode2iplParams
 

Macro Definition Documentation

◆ DBGPF1

#define DBGPF1   if (0)

Definition at line 36 of file Image.cpp.

Function Documentation

◆ readFromConnection()

bool readFromConnection ( Image dest,
ImageNetworkHeader header,
ConnectionReader connection 
)
inline

This helper function groups code to avoid duplication.

It is not a member function of Image because there are problems with ImageNetworkHeader, anyhow the function is state-less and uses only parameters.

Definition at line 48 of file Image.cpp.

Variable Documentation

◆ iplPixelTypeMono

const pixelTypeIplParams iplPixelTypeMono {1, 8 , "GRAY", "GRAY"}

Definition at line 305 of file Image.cpp.

◆ iplPixelTypeMono16

const pixelTypeIplParams iplPixelTypeMono16 {1, 16 , "GRAY", "GRAY"}

Definition at line 306 of file Image.cpp.

◆ pixelCode2iplParams

const std::map<int, pixelTypeIplParams> pixelCode2iplParams
Initial value:

Definition at line 308 of file Image.cpp.

VOCAB_PIXEL_RGB_INT
@ VOCAB_PIXEL_RGB_INT
Definition: Image.h:58
VOCAB_PIXEL_RGB_FLOAT
@ VOCAB_PIXEL_RGB_FLOAT
Definition: Image.h:60
VOCAB_PIXEL_ENCODING_BAYER_BGGR16
@ VOCAB_PIXEL_ENCODING_BAYER_BGGR16
Definition: Image.h:65
iplPixelTypeMono
const pixelTypeIplParams iplPixelTypeMono
Definition: Image.cpp:305
VOCAB_PIXEL_ENCODING_BAYER_RGGB8
@ VOCAB_PIXEL_ENCODING_BAYER_RGGB8
Definition: Image.h:68
VOCAB_PIXEL_RGBA
@ VOCAB_PIXEL_RGBA
Definition: Image.h:51
VOCAB_PIXEL_YUV_422
@ VOCAB_PIXEL_YUV_422
Definition: Image.h:72
VOCAB_PIXEL_YUV_420
@ VOCAB_PIXEL_YUV_420
Definition: Image.h:70
iplPixelTypeMono16
const pixelTypeIplParams iplPixelTypeMono16
Definition: Image.cpp:306
VOCAB_PIXEL_ENCODING_BAYER_RGGB16
@ VOCAB_PIXEL_ENCODING_BAYER_RGGB16
Definition: Image.h:69
VOCAB_PIXEL_YUV_444
@ VOCAB_PIXEL_YUV_444
Definition: Image.h:71
VOCAB_PIXEL_ENCODING_BAYER_GBRG16
@ VOCAB_PIXEL_ENCODING_BAYER_GBRG16
Definition: Image.h:67
VOCAB_PIXEL_BGRA
@ VOCAB_PIXEL_BGRA
Definition: Image.h:52
VOCAB_PIXEL_ENCODING_BAYER_GRBG16
@ VOCAB_PIXEL_ENCODING_BAYER_GRBG16
Definition: Image.h:63
VOCAB_PIXEL_ENCODING_BAYER_GBRG8
@ VOCAB_PIXEL_ENCODING_BAYER_GBRG8
Definition: Image.h:66
VOCAB_PIXEL_MONO_SIGNED
@ VOCAB_PIXEL_MONO_SIGNED
Definition: Image.h:56
VOCAB_PIXEL_INT
@ VOCAB_PIXEL_INT
Definition: Image.h:53
VOCAB_PIXEL_MONO
@ VOCAB_PIXEL_MONO
Definition: Image.h:48
VOCAB_PIXEL_RGB
@ VOCAB_PIXEL_RGB
Definition: Image.h:50
VOCAB_PIXEL_YUV_411
@ VOCAB_PIXEL_YUV_411
Definition: Image.h:73
VOCAB_PIXEL_ENCODING_BAYER_BGGR8
@ VOCAB_PIXEL_ENCODING_BAYER_BGGR8
Definition: Image.h:64
VOCAB_PIXEL_MONO16
@ VOCAB_PIXEL_MONO16
Definition: Image.h:49
VOCAB_PIXEL_BGR
@ VOCAB_PIXEL_BGR
Definition: Image.h:55
VOCAB_PIXEL_HSV
@ VOCAB_PIXEL_HSV
Definition: Image.h:54
VOCAB_PIXEL_ENCODING_BAYER_GRBG8
@ VOCAB_PIXEL_ENCODING_BAYER_GRBG8
Definition: Image.h:62
VOCAB_PIXEL_MONO_FLOAT
@ VOCAB_PIXEL_MONO_FLOAT
Definition: Image.h:59