Added opencv_contrib_world module and fixed some compilation warnings on iOS

pull/168/head
Maksim Shabunin 10 years ago
parent 312c8fa7e1
commit 2b74ca6f12
  1. 2
      modules/adas/tools/fcw_detect/CMakeLists.txt
  2. 2
      modules/adas/tools/fcw_train/CMakeLists.txt
  3. 2
      modules/bioinspired/src/retinacolor.hpp
  4. 2
      modules/bioinspired/src/retinafilter.hpp
  5. 43
      modules/contrib_world/CMakeLists.txt
  6. 5
      modules/contrib_world/include/opencv2/contrib_world.hpp
  7. 1
      modules/contrib_world/src/dummy.cpp
  8. 2
      modules/datasets/src/ar_hmdb.cpp
  9. 4
      modules/datasets/src/or_imagenet.cpp
  10. 2
      modules/datasets/src/or_sun.cpp
  11. 6
      modules/line_descriptor/src/binary_descriptor.cpp
  12. 4
      modules/surface_matching/src/icp.cpp
  13. 2
      modules/text/src/erfilter.cpp
  14. 4
      modules/xphoto/src/dct_image_denoising.cpp

@ -32,4 +32,4 @@ if(ENABLE_SOLUTION_FOLDERS)
set_target_properties(${the_target} PROPERTIES FOLDER "applications")
endif()
install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
install(TARGETS ${the_target} OPTIONAL RUNTIME DESTINATION bin COMPONENT main)

@ -32,4 +32,4 @@ if(ENABLE_SOLUTION_FOLDERS)
set_target_properties(${the_target} PROPERTIES FOLDER "applications")
endif()
install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
install(TARGETS ${the_target} OPTIONAL RUNTIME DESTINATION bin COMPONENT main)

@ -338,7 +338,7 @@ namespace bioinspired
class Parallel_computeGradient: public cv::ParallelLoopBody
{
private:
protected:
float *imageGradient;
const float *luminance;
unsigned int nbColumns, doubleNbColumns, nbRows, nbPixels;

@ -503,7 +503,7 @@ public:
inline unsigned int getOutputNBpixels() { return _photoreceptorsPrefilter.getNBpixels(); }
private:
protected:
// processing activation flags
bool _useParvoOutput;

@ -0,0 +1,43 @@
set(the_description "Separate world module containing all contrib modules")
set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE)
set(BUILD_opencv_contrib_world_INIT OFF) # disabled by default
# add new submodules to this list
set(OPENCV_MODULE_CHILDREN
bgsegm
bioinspired
ccalib
cvv
datasets
face
latentsvm
line_descriptor
optflow
reg
rgbd
saliency
surface_matching
text
tracking
xfeatures2d
ximgproc
xobjdetect
xphoto
)
ocv_list_add_prefix(OPENCV_MODULE_CHILDREN "opencv_")
ocv_define_module(contrib_world)
# ocv_add_module(contrib_world)
# set(link_deps "")
# foreach(m ${OPENCV_MODULE_opencv_contrib_world_CHILDREN})
# list(APPEND link_deps ${OPENCV_MODULE_${m}_LINK_DEPS})
# endforeach()
#
# ocv_glob_module_sources()
# ocv_module_include_directories()
#
# ocv_create_module(${link_deps})

@ -0,0 +1,5 @@
#ifndef __OPENCV_CONTRIB_WORLD_HPP__
#define __OPENCV_CONTRIB_WORLD_HPP__
#endif

@ -0,0 +1 @@
#include "opencv2/contrib_world.hpp"

@ -111,7 +111,7 @@ void AR_hmdbImp::loadDatasetSplit(const string &path, int number)
if (itId == actionsId.end())
{
actionsId.insert(make_pair(action, actionsId.size()));
id = actionsId.size();
id = (int)actionsId.size();
} else
{
id = (*itId).second;

@ -129,7 +129,7 @@ void OR_imagenetImp::loadDataset(const string &path)
{
Ptr<OR_imagenetObj> curr(new OR_imagenetObj);
curr->id = atoi(line.c_str());
numberToString(validation.back().size()+1, curr->image);
numberToString((int)validation.back().size()+1, curr->image);
curr->image = "val/ILSVRC2010_val_" + curr->image + ".JPEG";
validation.back().push_back(curr);
@ -153,7 +153,7 @@ void OR_imagenetImp::loadDataset(const string &path)
{
Ptr<OR_imagenetObj> curr(new OR_imagenetObj);
curr->id = *it;
numberToString(test.back().size()+1, curr->image);
numberToString((int)test.back().size()+1, curr->image);
curr->image = "test/ILSVRC2010_test_" + curr->image + ".JPEG";
test.back().push_back(curr);

@ -98,7 +98,7 @@ void OR_sunImp::loadDatasetPart(const string &path, vector< Ptr<Object> > &datas
curr->label = (*it).second;
} else
{
curr->label = pathLabel.size();
curr->label = (int)pathLabel.size();
pathLabel.insert(make_pair(labelStr, curr->label));
paths.push_back(labelStr);
}

@ -570,7 +570,7 @@ void BinaryDescriptor::computeImpl( const Mat& imageSrc, std::vector<KeyLine>& k
/* create a map to record association between KeyLines and their position
in ScaleLines vector */
std::map<std::pair<int, int>, int> correspondences;
std::map<std::pair<int, int>, size_t> correspondences;
/* fill ScaleLines object */
for ( size_t slCounter = 0; slCounter < keylines.size(); slCounter++ )
@ -601,7 +601,7 @@ void BinaryDescriptor::computeImpl( const Mat& imageSrc, std::vector<KeyLine>& k
/* update map */
int id = kl.class_id;
int oct = kl.octave;
correspondences.insert( std::pair<std::pair<int, int>, int>( std::pair<int, int>( id, oct ), slCounter ) );
correspondences.insert( std::pair<std::pair<int, int>, size_t>( std::pair<int, int>( id, oct ), slCounter ) );
}
/* delete useless OctaveSingleLines */
@ -632,7 +632,7 @@ void BinaryDescriptor::computeImpl( const Mat& imageSrc, std::vector<KeyLine>& k
{
/* get original index of keypoint */
int lineOctave = ( sl[k][lineC] ).octaveCount;
int originalIndex = correspondences.find( std::pair<int, int>( k, lineOctave ) )->second;
int originalIndex = (int)correspondences.find( std::pair<int, int>( k, lineOctave ) )->second;
if( !returnFloatDescr )
{

@ -425,9 +425,9 @@ int ICP::registerModelToScene(const Mat& srcPC, const Mat& dstPC, double& residu
if (node)
{
// select the first node
int idx = reinterpret_cast<long>(node->data)-1, dn=0;
long idx = reinterpret_cast<long>(node->data)-1, dn=0;
int dup = (int)node->key-1;
int minIdxD = idx;
long minIdxD = idx;
float minDist = distances[idx];
while ( node )

@ -1998,7 +1998,7 @@ enum {
computation.
*/
class dissimilarity {
private:
protected:
double * Xa;
auto_array_ptr<double> Xnew;
ptrdiff_t dim; // size_t saves many statis_cast<> in products

@ -70,7 +70,7 @@ namespace xphoto
void operator() (const Range &range) const;
private:
protected:
const Mat &src;
std::vector <Mat> &patches; // image decomposition into sliding patches
@ -182,4 +182,4 @@ namespace xphoto
}
}
}
}

Loading…
Cancel
Save