YARP
Yet Another Robot Platform
ImageUtils.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_SIG_IMAGEUTILS_H
10 #define YARP_SIG_IMAGEUTILS_H
11 
12 #include <yarp/sig/Image.h>
13 
14 namespace yarp {
15 namespace sig{
21 namespace utils
22 {
23 
32 bool YARP_sig_API vertSplit(const yarp::sig::Image& inImg, yarp::sig::Image& outImgL, yarp::sig::Image& outImgR);
33 
42 bool YARP_sig_API horzSplit(const yarp::sig::Image& inImg, yarp::sig::Image& outImgUp, yarp::sig::Image& outImgDown);
43 
53 bool YARP_sig_API horzConcat(const yarp::sig::Image& inImgL, const yarp::sig::Image& inImgR, yarp::sig::Image& outImg);
54 
64 bool YARP_sig_API vertConcat(const yarp::sig::Image& inImgUp, const yarp::sig::Image& inImgDown, yarp::sig::Image& outImg);
65 } // namespace utils
66 } // namespace sig
67 } // namespace yarp
68 
69 #endif // YARP_SIG_IMAGEUTILS_H
yarp::sig::utils::horzSplit
bool horzSplit(const yarp::sig::Image &inImg, yarp::sig::Image &outImgUp, yarp::sig::Image &outImgDown)
horzSplit, split horizontally an image in two images of the same size.
Definition: ImageUtils.cpp:52
yarp::sig::utils::vertConcat
bool vertConcat(const yarp::sig::Image &inImgUp, const yarp::sig::Image &inImgDown, yarp::sig::Image &outImg)
vertConcat, concatenate vertically two images of the same size in one with double height.
Definition: ImageUtils.cpp:100
yarp::sig::utils::vertSplit
bool vertSplit(const yarp::sig::Image &inImg, yarp::sig::Image &outImgL, yarp::sig::Image &outImgR)
vertSplit, split vertically an image in two images of the same size.
Definition: ImageUtils.cpp:25
YARP_sig_API
#define YARP_sig_API
Definition: api.h:19
Image.h
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::sig::Image
Base class for storing images.
Definition: Image.h:85
yarp::sig::utils::horzConcat
bool horzConcat(const yarp::sig::Image &inImgL, const yarp::sig::Image &inImgR, yarp::sig::Image &outImg)
horzConcat, concatenate horizontally two images of the same size in one with double width.
Definition: ImageUtils.cpp:69