Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ipythonxiaobo
otb
Commits
26085b00
Commit
26085b00
authored
Mar 22, 2022
by
Julien Osman
Browse files
STYLE: Fix typos
parent
dde3270d
Changes
16
Hide whitespace changes
Inline
Side-by-side
Data/Baseline/OTB/Files/otbPolygonTest.txt
View file @
26085b00
...
...
@@ -166,7 +166,7 @@ polygon2->NbCrossing([6, 7], [6, 10]) = 0
polygon2->NbTouching([6, 7], [6, 10]) = 3
Bounding Boxs computation :
Bounding Box
e
s computation :
Bounding Box 1
Index : [2, 3] , Size : [7, 7]
Bounding Box 2
...
...
Modules/Adapters/BoostAdapters/include/otbStringUtils.h
View file @
26085b00
...
...
@@ -102,7 +102,7 @@ void ConvertStringToVector(std::string const& str, T& ret, std::string const& er
* \param[in] str input string
* \param key[out] An std::string reference where key will be stored
* \param value[out] a reference of \cT where value will be stored
* \param defValue[in] a default value if there is no delimiter
fo
* \param defValue[in] a default value if there is no delimiter
* \param[in] errmsg a msg complement used to build the error message to
be shown if there is \c lexical_cast exception. See \cotb:Utils::LexicalCast().
* \param delims delimiter characters (space is default)
...
...
Modules/Adapters/GdalAdapters/include/otbCoordinateTransformation.h
View file @
26085b00
...
...
@@ -87,7 +87,7 @@ public:
* \param source The source spatial reference
* \param target The target spatial reference
*
* \throws InvalidCoordinateTransf
r
omationException in case of failure
* \throws InvalidCoordinateTransfo
r
mationException in case of failure
*/
CoordinateTransformation
(
const
SpatialReference
&
source
,
const
SpatialReference
&
destination
);
...
...
Modules/Adapters/GdalAdapters/include/otbOGRLayerWrapper.h
View file @
26085b00
...
...
@@ -128,7 +128,7 @@ public:
/**\name Features collection */
//@{
/** Returns the number of elements in the layer.
* \param[in] doForceCompuation indicates whether the size shall be computed
* \param[in] doForceCompu
t
ation indicates whether the size shall be computed
* even so it's expensive to do so.
*
* \return the number of features in the layer, -1 if count is unknown
...
...
Modules/Adapters/GdalAdapters/test/otbOGRDataSourceWrapperNew.cxx
View file @
26085b00
...
...
@@ -671,7 +671,7 @@ BOOST_AUTO_TEST_CASE(Add_n_Del_Fields)
ogr
::
FieldDefn
f4
(
*
defn
.
GetFieldDefn
(
4
));
BOOST_CHECK_EQUAL
(
f4
,
k_f5
);
}
// todo: add reoder tests
// todo: add reo
r
der tests
}
BOOST_AUTO_TEST_CASE
(
Add_n_Read_Fields
)
...
...
Modules/Core/Metadata/src/otbSentinel1ImageMetadataInterface.cxx
View file @
26085b00
...
...
@@ -857,7 +857,7 @@ void Sentinel1ImageMetadataInterface::ParseGeom(ImageMetadata & imd)
if
(
hasSAR
)
{
// Old metadata (from geom) does not contain support_data.look_side for S1 products
// Rig
t
h looking flag is always true for S1 products => hard coded value, here
// Righ
t
looking flag is always true for S1 products => hard coded value, here
sarParam
.
rightLookingFlag
=
true
;
imd
.
Add
(
MDGeom
::
SAR
,
sarParam
);
}
...
...
Modules/Core/Metadata/src/otbTerraSarXSarImageMetadataInterface.cxx
View file @
26085b00
...
...
@@ -923,7 +923,7 @@ void TerraSarXSarImageMetadataInterface::ParseGeom(ImageMetadata & imd)
sarParam
.
azimuthFmRates
=
this
->
GetAzimuthFmRateGeom
();
sarParam
.
dopplerCentroids
=
this
->
GetDopplerCentroidGeom
();
// Rig
t
h looking flag is always true for TSX products
// Righ
t
looking flag is always true for TSX products
sarParam
.
rightLookingFlag
=
true
;
const
std
::
string
supportDataPrefix
=
"support_data."
;
...
...
Modules/Core/PointSet/test/otbTransformPointSetFilterTest.cxx
View file @
26085b00
...
...
@@ -33,7 +33,7 @@ int otbTransformPointSetFilterTest(int, char* [])
// Declare the types of the PointSet
// By default it is a 3D PointSet using itk::Point<float, 3>
// on the vertices, and an itk::VectorContain
t
er
// on the vertices, and an itk::VectorContainer
// as container for points
typedef
itk
::
PointSet
<
PixelType
>
PointSetType
;
...
...
Modules/Core/VectorDataBase/test/otbPolygon.cxx
View file @
26085b00
...
...
@@ -123,7 +123,7 @@ int otbPolygon(int itkNotUsed(argc), char* argv[])
file
<<
"polygon2->NbTouching("
<<
current
<<
", "
<<
firstVertex
<<
") = "
<<
polygon2
->
NbTouching
(
current
,
firstVertex
)
<<
std
::
endl
;
file
<<
std
::
endl
<<
std
::
endl
;
file
<<
"Bounding Boxs computation : "
<<
std
::
endl
;
file
<<
"Bounding Box
e
s computation : "
<<
std
::
endl
;
PolygonType
::
RegionType
r1
=
polygon1
->
GetBoundingRegion
();
file
<<
"Bounding Box 1"
<<
std
::
endl
;
file
<<
"Index : "
<<
r1
.
GetIndex
()
<<
" , Size : "
<<
r1
.
GetSize
()
<<
std
::
endl
;
...
...
Modules/Filtering/ChangeDetection/test/otbKullbackLeiblerDistanceImageFilter.cxx
View file @
26085b00
...
...
@@ -28,7 +28,7 @@ int otbKullbackLeiblerDistanceImageFilter(int argc, char* argv[])
{
if
(
argc
!=
5
)
{
std
::
cerr
<<
"
Detection de changements par mesure de Kullback-Leibler, optimisee par un development de Edgeworth
\n
"
;
std
::
cerr
<<
"
Change detection by Kullback-Leible measure, optimized by an Edgeworth development
\n
"
;
std
::
cerr
<<
argv
[
0
]
<<
" imgAv imgAp imgResu winSize
\n
"
;
return
1
;
}
...
...
Modules/Filtering/ChangeDetection/test/otbKullbackLeiblerProfileImageFilter.cxx
View file @
26085b00
...
...
@@ -29,7 +29,7 @@ int otbKullbackLeiblerProfileImageFilter(int argc, char* argv[])
{
if
(
argc
!=
6
)
{
std
::
cerr
<<
"
Detection de changements par mesure de Kullback-Leibler, optimisee par un development de Edgeworth
\n
"
;
std
::
cerr
<<
"
Change detection by Kullback-Leible measure, optimized by an Edgeworth development
\n
"
;
std
::
cerr
<<
argv
[
0
]
<<
" imgAv imgAp imgResu winSizeMin winSizeMax
\n
"
;
return
1
;
}
...
...
Modules/IO/IOMSTAR/src/otbMSTARImageIO.cxx
View file @
26085b00
...
...
@@ -111,7 +111,7 @@ bool MSTARImageIO::CanReadFile(const char* filename)
std
::
string
fname
=
filename
;
if
(
fname
==
""
)
{
itkDebugMacro
(
<<
"
Fichier imag
e no
n
specifie."
);
itkDebugMacro
(
<<
"
Image fil
e no
t
specifie
d
."
);
}
MSTARname
=
filename
;
...
...
@@ -249,13 +249,13 @@ bool MSTARImageIO::CanWriteFile(const char* filename)
if
(
fname
==
""
)
{
itkDebugMacro
(
<<
"
Fichier imag
e no
n
specifie."
);
itkDebugMacro
(
<<
"
Image fil
e no
t
specifie
d
."
);
}
if
(
formatFound
==
false
)
{
std
::
string
identificationErreur
;
identificationErreur
=
"
Format MSTAR
no
n
detecte
dans l'extension du fichier
."
;
identificationErreur
=
"
MSTAR format
no
t
detecte
d in the file's extension
."
;
itkDebugMacro
(
<<
identificationErreur
.
c_str
());
}
...
...
Modules/Learning/Supervised/test/0000209-SVMValidationLinearlySeparableProbEstimation.cxx
View file @
26085b00
...
...
@@ -37,7 +37,7 @@ This test show a problem with the SVM library using the probability
estimation : bug 209.
If the probability estimation is activated, the classifier isn't
abble to find the hyperplan even if the sample are linearly
sep
e
rable.
sep
a
rable.
cf. test leTvBug209_SVMValidationLinearlySeparableWithoutProbEstimate
=> OK
and leTvBug209_SVMValidationLinearlySeparableWithProbEstimate => KO
...
...
Modules/Segmentation/Metrics/include/otbHooverMatrixFilter.hxx
View file @
26085b00
...
...
@@ -107,7 +107,7 @@ void HooverMatrixFilter<TLabelMap>::ThreadedProcessLabelObject(LabelObjectType*
// if found : ++ in the cell [n, p]
for
(
unsigned
long
j
=
currentRegionMS
;
j
<
(
currentRegionMS
+
m_NumberOfRegionsMS
);
j
++
)
{
// TODO : optimize here : call GetLabelObjet(label) would be faster
// TODO : optimize here : call GetLabelObje
c
t(label) would be faster
const
LabelObjectType
*
regionMS
=
this
->
GetMachineSegmentationLabelMap
()
->
GetNthLabelObject
(
j
%
m_NumberOfRegionsMS
);
if
(
regionMS
->
HasIndex
(
idx
))
{
...
...
Modules/Visualization/Ice/include/otbGlVertexArrayObject.h
View file @
26085b00
...
...
@@ -50,4 +50,4 @@ using VertexArrayObject = Handle< VertexArrayObjectPolicy >;
}
// end namespace otb.
#endif // otb_GlVetexArrayObject_h
#endif // otb_GlVe
r
texArrayObject_h
Utilities/Maintenance/fix_typos.sh
View file @
26085b00
...
...
@@ -48,6 +48,8 @@ EXCLUDED_FILES="$EXCLUDED_FILES,*/Documentation/SoftwareGuide/Art/*,*/Documentat
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Copyright/*,*/SuperBuild/Copyright/*"
# exclude maintenance, translation, license
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Utilities/Maintenance/fix_typos.sh,*/fix_typos/*,LICENSE,*/i18n/*"
# exclude Data directory
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Data/*"
#We use also words white list to handle deprecated classes/methods which are still there and contains some typos
...
...
@@ -60,6 +62,14 @@ WORDS_WHITE_LIST="Developement"
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,dum"
# for pary variable
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,pary"
# LaTeX
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,LaTeX,BibTeX,404"
# Technical terms
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,SOM,som,HaA,ND,haa,Hsi,Eyt,VectorDatas,ot,inout,Lod"
# CMake
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,DEPENDEES,Te,Alls"
# Names
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,bre,Theis,Dout,Pont,Unser"
python3 fix_typos/codespell/codespell.py
-w
-i
3
-q
2
-S
$EXCLUDED_FILES
\
--words-white-list
=
$WORDS_WHITE_LIST
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment