YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
ImageColorKey.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef YARP_SIG_IMAGE_COLORKEY_H
7
#define YARP_SIG_IMAGE_COLORKEY_H
8
9
#include <
yarp/sig/Image.h
>
10
#include <
yarp/sig/ImageColorKeyData.h
>
11
12
namespace
yarp::sig
{
13
14
class
YARP_sig_API
ImageColorKey
:
public
yarp::sig::ImageColorKeyData
15
{
16
public
:
17
//default constructor
18
ImageColorKey
() =
default
;
19
20
void
setValueAsPixelRgb
(yarp::sig::PixelRgb v)
21
{
22
value = *
reinterpret_cast<
int
*
>
(&v);
23
}
24
yarp::sig::PixelRgb
getValueAsPixelRgb
()
25
{
26
return
*
reinterpret_cast<
yarp::sig::PixelRgb*
>
(&value);
27
}
28
};
29
}
// namespace yarp::sig
30
31
#endif
// YARP_SIG_IMAGE_H
ImageColorKeyData.h
Image.h
yarp::sig::ImageColorKeyData
Definition
ImageColorKeyData.h:23
yarp::sig::ImageColorKey
Definition
ImageColorKey.h:15
yarp::sig::ImageColorKey::getValueAsPixelRgb
yarp::sig::PixelRgb getValueAsPixelRgb()
Definition
ImageColorKey.h:24
yarp::sig::ImageColorKey::setValueAsPixelRgb
void setValueAsPixelRgb(yarp::sig::PixelRgb v)
Definition
ImageColorKey.h:20
yarp::sig::ImageColorKey::ImageColorKey
ImageColorKey()=default
yarp::sig
Definition
audioBufferSizeData.cpp:13
YARP_sig_API
#define YARP_sig_API
Definition
api.h:18
YARP
4.0.2+169-20261113.4+git2cc772dc6
src
libYARP_sig
src
yarp
sig
ImageColorKey.h
Generated on Sun Nov 15 2026 02:12:11 for YARP by
1.9.8