SaliencyCalculation.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * ArmarX is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * @package
19 * @author
20 * @date
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24#pragma once
25
26#include "ObjectHypothesis.h"
27
28class CCalibration;
29class CByteImage;
30
32{
33 void FindLocalMaxima(const std::vector<Vec3d>& aPoints3D,
34 const std::vector<Vec2d>& aPointsInImage,
35 std::vector<Vec3d>& aMaxima,
36 const int nBinSizeInPx,
37 CByteImage* pMaximumnessImage);
38 void FindLocalMaxima(const std::vector<CHypothesisPoint*>& aPoints,
39 const Mat3d mCameraToWorldRotation,
40 const Vec3d vCameraToWorldTranslation,
41 const CCalibration* calibration,
42 std::vector<Vec3d>& aMaxima,
43 CByteImage* pMaximumnessImage,
44 const int nBinSizeInPx = 16);
45
47 {
48 double r, i;
49 };
50
52 CComplexNumber ExpComplImagOnly(const float a);
53
54 void FourierTransformation(const CByteImage* pGrayImage, CComplexNumber* pTransformed);
55 void InverseFourierTransformation(CComplexNumber* pTransformed, CByteImage* pGrayImage);
57 void FindSalientRegionsHou(const CByteImage* pImageRGB, CByteImage* pSaliencyImage);
58 void FindSalientRegionsAchanta(const CByteImage* pImageRGB, CByteImage* pSaliencyImage);
59
60 void ConvertRGB2Lab(const CByteImage* pImageRGB, CByteImage* pImageLab);
61} // namespace CSaliencyCalculation
void FindLocalMaxima(const std::vector< Vec3d > &aPoints3D, const std::vector< Vec2d > &aPointsInImage, std::vector< Vec3d > &aMaxima, const int nBinSizeInPx, CByteImage *pMaximumnessImage)
void FindSalientRegionsAchanta(const CByteImage *pImageRGB, CByteImage *pSaliencyImage)
void FourierTransformation(const CByteImage *pGrayImage, CComplexNumber *pTransformed)
void FindSalientRegionsHou(const CByteImage *pImageRGB, CByteImage *pSaliencyImage)
void ConvertRGB2Lab(const CByteImage *pImageRGB, CByteImage *pImageLab)
CComplexNumber MultCompl(const CComplexNumber a, const CComplexNumber b)
void SubstractAveragedLogPowerSpectrum(CComplexNumber *pTransformed)
void InverseFourierTransformation(CComplexNumber *pTransformed, CByteImage *pGrayImage)
CComplexNumber ExpComplImagOnly(const float a)