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 
28 class CCalibration;
29 class CByteImage;
30 
31 namespace CSaliencyCalculation
32 {
33  void FindLocalMaxima(const std::vector<Vec3d>& aPoints3D, const std::vector<Vec2d>& aPointsInImage, std::vector<Vec3d>& aMaxima, const int nBinSizeInPx, CByteImage* pMaximumnessImage);
34  void FindLocalMaxima(const std::vector<CHypothesisPoint*>& aPoints, const Mat3d mCameraToWorldRotation, const Vec3d vCameraToWorldTranslation,
35  const CCalibration* calibration, std::vector<Vec3d>& aMaxima, CByteImage* pMaximumnessImage, const int nBinSizeInPx = 16);
36 
38  {
39  double r, i;
40  };
42  CComplexNumber ExpComplImagOnly(const float a);
43 
44  void FourierTransformation(const CByteImage* pGrayImage, CComplexNumber* pTransformed);
45  void InverseFourierTransformation(CComplexNumber* pTransformed, CByteImage* pGrayImage);
47  void FindSalientRegionsHou(const CByteImage* pImageRGB, CByteImage* pSaliencyImage);
48  void FindSalientRegionsAchanta(const CByteImage* pImageRGB, CByteImage* pSaliencyImage);
49 
50  void ConvertRGB2Lab(const CByteImage* pImageRGB, CByteImage* pImageLab);
51 }
52 
ObjectHypothesis.h
CSaliencyCalculation::ExpComplImagOnly
CComplexNumber ExpComplImagOnly(const float a)
Definition: SaliencyCalculation.cpp:262
CSaliencyCalculation::CComplexNumber::r
double r
Definition: SaliencyCalculation.h:39
CSaliencyCalculation::FourierTransformation
void FourierTransformation(const CByteImage *pGrayImage, CComplexNumber *pTransformed)
Definition: SaliencyCalculation.cpp:270
CSaliencyCalculation::ConvertRGB2Lab
void ConvertRGB2Lab(const CByteImage *pImageRGB, CByteImage *pImageLab)
Definition: SaliencyCalculation.cpp:715
CSaliencyCalculation::SubstractAveragedLogPowerSpectrum
void SubstractAveragedLogPowerSpectrum(CComplexNumber *pTransformed)
Definition: SaliencyCalculation.cpp:456
CSaliencyCalculation::InverseFourierTransformation
void InverseFourierTransformation(CComplexNumber *pTransformed, CByteImage *pGrayImage)
Definition: SaliencyCalculation.cpp:380
CSaliencyCalculation::FindSalientRegionsAchanta
void FindSalientRegionsAchanta(const CByteImage *pImageRGB, CByteImage *pSaliencyImage)
Definition: SaliencyCalculation.cpp:573
CSaliencyCalculation::MultCompl
CComplexNumber MultCompl(const CComplexNumber a, const CComplexNumber b)
Definition: SaliencyCalculation.cpp:256
armarx::ctrlutil::a
double a(double t, double a0, double j)
Definition: CtrlUtil.h:45
CSaliencyCalculation::FindLocalMaxima
void FindLocalMaxima(const std::vector< Vec3d > &aPoints3D, const std::vector< Vec2d > &aPointsInImage, std::vector< Vec3d > &aMaxima, const int nBinSizeInPx, CByteImage *pMaximumnessImage)
Definition: SaliencyCalculation.cpp:44
CSaliencyCalculation::CComplexNumber
Definition: SaliencyCalculation.h:37
GfxTL::Vec3d
VectorXD< 3, double > Vec3d
Definition: VectorXD.h:695
CSaliencyCalculation::CComplexNumber::i
double i
Definition: SaliencyCalculation.h:39
CSaliencyCalculation::FindSalientRegionsHou
void FindSalientRegionsHou(const CByteImage *pImageRGB, CByteImage *pSaliencyImage)
Definition: SaliencyCalculation.cpp:509
CSaliencyCalculation
Definition: SaliencyCalculation.cpp:41