modifié : CMakeLists.txt

modifié :         CMakeListsOTB.txt
	modifié :         LICENSE
	modifié :         MakefileNoOTB
	modifié :         Readme.html
	modifié :         Readme.txt
	modifié :         include/Appli/Option.hpp
	modifié :         include/Appli/Selected.hpp
	modifié :         include/Appli/Selected.tpp
	modifié :         include/ArrayTree/ArrayTreeBuilder.hpp
	modifié :         include/ArrayTree/ArrayTreeBuilder.tpp
	modifié :         include/ArrayTree/Border.hpp
	modifié :         include/ArrayTree/Border.tpp
	modifié :         include/ArrayTree/GraphWalker.hpp
	modifié :         include/ArrayTree/GraphWalker.tpp
	modifié :         include/ArrayTree/Leader.hpp
	modifié :         include/ArrayTree/Leader.tpp
	modifié :         include/ArrayTree/Weight.hpp
	modifié :         include/ArrayTree/Weight.tpp
	modifié :         include/ArrayTree/triskeleArrayTreeBase.hpp
	modifié :         include/ArrayTree/triskeleArrayTreeBase.tpp
	modifié :         include/ArrayTree/triskeleSort.hpp
	modifié :         include/ArrayTree/triskeleSort.tpp
	modifié :         include/AttributeProfiles.hpp
	modifié :         include/AttributeProfiles.tpp
	modifié :         include/Attributes/AreaAttributes.hpp
	modifié :         include/Attributes/AreaAttributes.tpp
	modifié :         include/Attributes/AverageAttributes.hpp
	modifié :         include/Attributes/AverageAttributes.tpp
	modifié :         include/Attributes/MoIAttributes.hpp
	modifié :         include/Attributes/MoIAttributes.tpp
	modifié :         include/Attributes/SDAttributes.hpp
	modifié :         include/Attributes/SDAttributes.tpp
	modifié :         include/Attributes/WeightAttributes.hpp
	modifié :         include/Attributes/WeightAttributes.tpp
	modifié :         include/Attributes/XYAttributes.hpp
	modifié :         include/Attributes/XYAttributes.tpp
	modifié :         include/CompAttribute.hpp
	modifié :         include/CompAttribute.tpp
	modifié :         include/IImage.hpp
	modifié :         include/IImage.tpp
	modifié :         include/QuadTree/QuadTreeBuilder.hpp
	modifié :         include/Tree.hpp
	modifié :         include/Tree.tpp
	modifié :         include/TreeBuilder.hpp
	modifié :         include/TreeBuilder.tpp
	modifié :         include/TreeStats.hpp
	modifié :         include/TreeStats.tpp
	modifié :         include/XMLTree/XMLTreeBuilder.hpp
	modifié :         include/triskeleBase.hpp
	modifié :         include/triskeleBase.tpp
	modifié :         include/triskeleDealThreads.hpp
	modifié :         include/triskeleDealThreads.tpp
	modifié :         include/triskeleDebug.hpp
	modifié :         include/triskeleGdalGetType.hpp
	modifié :         otb-module.cmake
	modifié :         src/Appli/Option.cpp
	modifié :         src/Appli/Selected.cpp
	modifié :         src/ArrayTree/triskeleArrayTreeBase.cpp
	modifié :         src/CMakeLists.txt
	modifié :         src/IImage.cpp
	modifié :         src/PerfArrayTreeBuilder.cpp
	modifié :         src/QuadTree/QuadTreeBuilder.cpp
	modifié :         src/TestArrayTreeBuilder.cpp
	modifié :         src/Tree.cpp
	modifié :         src/TreeStats.cpp
	modifié :         src/XMLTree/XMLTreeBuilder.cpp
	modifié :         src/apGenerator.cpp
	modifié :         src/triskeleBase.cpp
	modifié :         src/triskeleDebug.cpp
This commit is contained in:
Git Merciol 2018-04-02 19:25:37 +02:00
parent 2683beda1a
commit f687310939
70 changed files with 24 additions and 23 deletions

0
CMakeLists.txt Executable file → Normal file
View File

0
CMakeListsOTB.txt Executable file → Normal file
View File

0
LICENSE Executable file → Normal file
View File

0
MakefileNoOTB Executable file → Normal file
View File

0
Readme.html Executable file → Normal file
View File

0
Readme.txt Executable file → Normal file
View File

0
include/Appli/Option.hpp Executable file → Normal file
View File

0
include/Appli/Selected.hpp Executable file → Normal file
View File

0
include/Appli/Selected.tpp Executable file → Normal file
View File

0
include/ArrayTree/ArrayTreeBuilder.hpp Executable file → Normal file
View File

0
include/ArrayTree/ArrayTreeBuilder.tpp Executable file → Normal file
View File

0
include/ArrayTree/Border.hpp Executable file → Normal file
View File

0
include/ArrayTree/Border.tpp Executable file → Normal file
View File

0
include/ArrayTree/GraphWalker.hpp Executable file → Normal file
View File

0
include/ArrayTree/GraphWalker.tpp Executable file → Normal file
View File

0
include/ArrayTree/Leader.hpp Executable file → Normal file
View File

0
include/ArrayTree/Leader.tpp Executable file → Normal file
View File

0
include/ArrayTree/Weight.hpp Executable file → Normal file
View File

0
include/ArrayTree/Weight.tpp Executable file → Normal file
View File

0
include/ArrayTree/triskeleArrayTreeBase.hpp Executable file → Normal file
View File

0
include/ArrayTree/triskeleArrayTreeBase.tpp Executable file → Normal file
View File

0
include/ArrayTree/triskeleSort.hpp Executable file → Normal file
View File

0
include/ArrayTree/triskeleSort.tpp Executable file → Normal file
View File

0
include/AttributeProfiles.hpp Executable file → Normal file
View File

1
include/AttributeProfiles.tpp Executable file → Normal file
View File

@ -55,6 +55,7 @@ AttributeProfiles<PixelT>::print (ostream &out) const {
const Size doubleSize (tree.getSize().width, 2*tree.getSize ().height);
out << "AP" << endl
<< printMap (&values[0], doubleSize, tree.getNodeCount ()) << endl << endl;
return out;
}
#endif // _OTB_TRISKELE_ATTRIBUTE_PROFILES_TPP

2
include/Attributes/AreaAttributes.hpp Executable file → Normal file
View File

@ -17,7 +17,7 @@ namespace otb {
template<typename PixelT>
inline void cut (vector<vector<PixelT> > &allBands, const AttributeProfiles<PixelT> &attributeProfiles,
const vector<DimImg> &thresholds) const;
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "area"); }
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "area"); return out; }
protected:
inline void compute ();
};

0
include/Attributes/AreaAttributes.tpp Executable file → Normal file
View File

2
include/Attributes/AverageAttributes.hpp Executable file → Normal file
View File

@ -16,7 +16,7 @@ namespace otb {
template<typename PixelT>
inline AverageAttributes (const Tree &tree, const Raster<PixelT> &raster, const AreaAttributes &areaAttributes);
inline ~AverageAttributes ();
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "average"); }
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "average"); return out; }
protected:
template<typename PixelT>
inline void compute (const Raster<PixelT> &raster, const AreaAttributes &areaAttributes);

0
include/Attributes/AverageAttributes.tpp Executable file → Normal file
View File

2
include/Attributes/MoIAttributes.hpp Executable file → Normal file
View File

@ -13,7 +13,7 @@ namespace otb {
public:
inline MoIAttributes (const Tree &tree, const AreaAttributes &areaAttributes, const XYAttributes &xyAttributes);
inline ~MoIAttributes ();
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "moi"); }
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "moi"); return out; }
template<typename PixelT>
inline void cut (vector<vector<PixelT> > &allBands, const AttributeProfiles<PixelT> &attributeProfiles,

0
include/Attributes/MoIAttributes.tpp Executable file → Normal file
View File

2
include/Attributes/SDAttributes.hpp Executable file → Normal file
View File

@ -15,7 +15,7 @@ namespace otb {
public:
inline SDAttributes (const Tree &tree, const AreaAttributes &areaAttributes);
inline ~SDAttributes ();
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "sd"); }
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "sd"); return out; }
template<typename PixelT>
inline void cut (vector<vector<PixelT> > &allBands, const AttributeProfiles<PixelT> &attributeProfiles,

0
include/Attributes/SDAttributes.tpp Executable file → Normal file
View File

2
include/Attributes/WeightAttributes.hpp Executable file → Normal file
View File

@ -16,7 +16,7 @@ namespace otb {
inline void setWeightBounds (Tree &tree);
virtual inline ostream &print (ostream &out) const { CompAttribute<WeightT>::print (out, "weight"); }
virtual inline ostream &print (ostream &out) const { CompAttribute<WeightT>::print (out, "weight"); return out; }
};
#include "WeightAttributes.tpp"

0
include/Attributes/WeightAttributes.tpp Executable file → Normal file
View File

4
include/Attributes/XYAttributes.hpp Executable file → Normal file
View File

@ -14,7 +14,7 @@ namespace otb {
struct AverageXY {
double x, y;
inline AverageXY () : x(0), y(0) {}
friend ostream &operator << (ostream& out, const AverageXY &xy) { return out << "(" << xy.x << ", " << xy.y << ")"; }
friend ostream &operator << (ostream& out, const AverageXY &xy) { return out << "(" << xy.x << ", " << xy.y << ")"; return out; }
operator DimImg () const { return (DimImg) (x*y); }
};
@ -22,7 +22,7 @@ namespace otb {
public:
inline XYAttributes (const Tree &tree, const AreaAttributes &areaAttributes);
inline ~XYAttributes ();
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "xy"); }
virtual inline ostream &print (ostream &out) const { CompAttribute::print (out, "xy"); return out; }
protected:
inline void compute (const AreaAttributes &areaAttributes);
};

0
include/Attributes/XYAttributes.tpp Executable file → Normal file
View File

2
include/CompAttribute.hpp Executable file → Normal file
View File

@ -22,7 +22,7 @@ namespace otb {
inline AttrT *getValues ();
inline AttrT getMaxValue () const;
virtual inline ostream &print (ostream &out) const { print (out, ""); }
virtual inline ostream &print (ostream &out) const { print (out, ""); return out; }
protected:
const Tree &tree;

2
include/CompAttribute.tpp Executable file → Normal file
View File

@ -52,7 +52,7 @@ inline ostream &
CompAttribute<AttrT>::print (ostream &out, const string &msg) const {
cout << "values: " << msg << endl;
const Size doubleSize (tree.getSize().width, 2*tree.getSize ().height);
cout << printMap (&values[0], doubleSize, tree.getCompCount ()) << endl << endl;
return cout << printMap (&values[0], doubleSize, tree.getCompCount ()) << endl << endl;
}
template<typename AttrT>

0
include/IImage.hpp Executable file → Normal file
View File

0
include/IImage.tpp Executable file → Normal file
View File

0
include/QuadTree/QuadTreeBuilder.hpp Executable file → Normal file
View File

0
include/Tree.hpp Executable file → Normal file
View File

0
include/Tree.tpp Executable file → Normal file
View File

0
include/TreeBuilder.hpp Executable file → Normal file
View File

0
include/TreeBuilder.tpp Executable file → Normal file
View File

0
include/TreeStats.hpp Executable file → Normal file
View File

0
include/TreeStats.tpp Executable file → Normal file
View File

0
include/XMLTree/XMLTreeBuilder.hpp Executable file → Normal file
View File

0
include/triskeleBase.hpp Executable file → Normal file
View File

0
include/triskeleBase.tpp Executable file → Normal file
View File

0
include/triskeleDealThreads.hpp Executable file → Normal file
View File

8
include/triskeleDealThreads.tpp Executable file → Normal file
View File

@ -60,7 +60,6 @@ dealThread (const DimImg &maxId, unsigned int coreCount, const FunctThreadMinMax
}
std::vector<DimImg> maxIds = getDealThreadBounds (maxId, coreCount);
boost::thread tasks [coreCount];
#ifdef THREAD_DISABLE
for (unsigned int idCopyValInThread = 0; idCopyValInThread < coreCount; ++idCopyValInThread) {
functThreadMinMax (idCopyValInThread, maxIds[idCopyValInThread], maxIds[idCopyValInThread+1]);
@ -72,10 +71,11 @@ dealThread (const DimImg &maxId, unsigned int coreCount, const FunctThreadMinMax
functThreadMinMax (idCopyValInThread, maxIds[idCopyValInThread], maxIds[idCopyValInThread+1]);
});
#else /* BOOST thread */
boost::thread tasks [coreCount];
for (unsigned int idCopyValInThread = 0; idCopyValInThread < coreCount; ++idCopyValInThread) {
tasks[idCopyValInThread] = boost::thread ([/*no ref!!!*/idCopyValInThread, &maxIds, &functThreadMinMax] () {
functThreadMinMax (idCopyValInThread, maxIds[idCopyValInThread], maxIds[idCopyValInThread+1]);
});
tasks.push_back (boost::thread ([/*no ref!!!*/idCopyValInThread, &maxIds, &functThreadMinMax] () {
functThreadMinMax (idCopyValInThread, maxIds[idCopyValInThread], maxIds[idCopyValInThread+1]);
}));
}
for (unsigned int i = 0; i < coreCount; ++i)
tasks[i].join ();

0
include/triskeleDebug.hpp Executable file → Normal file
View File

0
include/triskeleGdalGetType.hpp Executable file → Normal file
View File

0
otb-module.cmake Executable file → Normal file
View File

20
src/Appli/Option.cpp Executable file → Normal file
View File

@ -202,18 +202,18 @@ Option::parse (int argc, char** argv) {
selectedBand.toSet ();
Size orgSize = inputImage.getSize ();
if (width < 0 || width > orgSize.width)
width = left <= 0 ? orgSize.width : min (1L, orgSize.width-left);
if (height < 0 || height > orgSize.height)
height = top <= 0 ? orgSize.height : min (1L, orgSize.height-top);
if (width < 0 || width > (long) orgSize.width)
width = left <= 0 ? (long) orgSize.width : min (1L, (long) orgSize.width-left);
if (height < 0 || height > (long) orgSize.height)
height = top <= 0 ? (long) orgSize.height : min (1L, (long) orgSize.height-top);
if (left < 0)
left = (orgSize.width - width)/2;
left = ((long) orgSize.width - width)/2;
if (top < 0)
top = (orgSize.height - height)/2;
if (left > orgSize.width - width)
left = orgSize.width - width;
if (top > orgSize.height - height)
top = orgSize.height - height;
top = ((long) orgSize.height - height)/2;
if (left > (long) orgSize.width - width)
left = (long) orgSize.width - width;
if (top > (long) orgSize.height - height)
top = (long) orgSize.height - height;
topLeft = Point ((DimSideImg) left, (DimSideImg) top);
size = Size ((DimSideImg) width, (DimSideImg) height);

0
src/Appli/Selected.cpp Executable file → Normal file
View File

0
src/ArrayTree/triskeleArrayTreeBase.cpp Executable file → Normal file
View File

0
src/CMakeLists.txt Executable file → Normal file
View File

0
src/IImage.cpp Executable file → Normal file
View File

0
src/PerfArrayTreeBuilder.cpp Executable file → Normal file
View File

0
src/QuadTree/QuadTreeBuilder.cpp Executable file → Normal file
View File

0
src/TestArrayTreeBuilder.cpp Executable file → Normal file
View File

0
src/Tree.cpp Executable file → Normal file
View File

0
src/TreeStats.cpp Executable file → Normal file
View File

0
src/XMLTree/XMLTreeBuilder.cpp Executable file → Normal file
View File

0
src/apGenerator.cpp Executable file → Normal file
View File

0
src/triskeleBase.cpp Executable file → Normal file
View File

0
src/triskeleDebug.cpp Executable file → Normal file
View File