Skip to content

Commit bf40dfb

Browse files
author
Fabien Servant
committed
Comments and typos
1 parent 0434f1b commit bf40dfb

File tree

11 files changed

+17
-21
lines changed

11 files changed

+17
-21
lines changed

src/aliceVision/mesh/MeshIntersection.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MeshIntersection
3535
* @param output the output measured point
3636
* @param intrinsic the camera intrinsics to use for ray computation
3737
* @param imageCoords the camera observation we want to use to estimate its 'depth'
38-
* @return true if the ray intersect the mesh.
38+
* @return true if the ray intersects the mesh.
3939
*/
4040
bool pickPoint(Vec3 & output, const camera::IntrinsicBase & intrinsic, const Vec2 & imageCoords);
4141

@@ -44,7 +44,7 @@ class MeshIntersection
4444
* @param output the output measured normal
4545
* @param intrinsic the camera intrinsics to use for ray computation
4646
* @param imageCoords the camera observation we want to use to estimate its 'depth'
47-
* @return true if the ray intersect the mesh.
47+
* @return true if the ray intersects the mesh.
4848
*/
4949
bool pickNormal(Vec3 & output, const camera::IntrinsicBase & intrinsic, const Vec2 & imageCoords);
5050

@@ -54,7 +54,7 @@ class MeshIntersection
5454
* @param normal the output measured normal
5555
* @param intrinsic the camera intrinsics to use for ray computation
5656
* @param imageCoords the camera observation we want to use to estimate its 'depth'
57-
* @return true if the ray intersect the mesh.
57+
* @return true if the ray intersects the mesh.
5858
*/
5959
bool pickPointAndNormal(Vec3 & point, Vec3 & normal, const camera::IntrinsicBase & intrinsic, const Vec2 & imageCoords);
6060

src/aliceVision/sfm/pipeline/expanding/ExpansionChunk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void ExpansionChunk::setConstraints(sfmData::SfMData & sfmData, const track::Tra
250250

251251
for (const auto & [trackId, vecInfo] : infoPerLandmark)
252252
{
253-
if (vecInfo.size() == 0)
253+
if (vecInfo.empty())
254254
{
255255
continue;
256256
}

src/aliceVision/sfm/pipeline/expanding/ExpansionChunk.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ExpansionChunk
2020
{
2121
public:
2222
using uptr = std::unique_ptr<ExpansionChunk>;
23-
23+
2424
public:
2525

2626
/**
@@ -35,7 +35,7 @@ class ExpansionChunk
3535
const std::set<IndexT> & viewsChunk);
3636

3737
/**
38-
* brief setup the bundle handler
38+
* @brief setup the bundle handler
3939
* @param bundleHandler a unique ptr. the Ownership will be taken
4040
*/
4141
void setBundleHandler(SfmBundle::uptr & bundleHandler)

src/aliceVision/sfm/pipeline/expanding/ExpansionPolicyLegacy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void ExpansionPolicyLegacy::rollback(const std::set<IndexT> & viewsSet)
204204
{
205205
for (const auto & item : viewsSet)
206206
{
207-
ALICEVISION_LOG_INFO("rollback view : " << item);
207+
ALICEVISION_LOG_INFO("Rollback view : " << item);
208208
_availableViewsIds.insert(item);
209209
}
210210
}

src/aliceVision/sfm/pipeline/expanding/PointFetcher.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ class PointFetcher
2222
public:
2323
/**
2424
* Set the pose of the camera
25-
* @param the pose of the camera wrt some global coordinates frame
25+
* @param pose the pose of the camera wrt some global coordinates frame
2626
*/
2727
virtual void setPose(const geometry::Pose3 & pose) = 0;
2828

2929
/**
3030
* @brief virtual method to get coordinates and normals of a pixel of an image
3131
* @param point result point in some global coordinates frame
3232
* @param normal result normal in some global coordinates frame
33-
* @param pose pose of the camera wrt some global coordinates frame
3433
* @param intrinsic the camera intrinsic object
3534
* @param imageCoords the input image pixel coordinates in 2D.
3635
* @return false on error

src/aliceVision/sfm/pipeline/expanding/SfmBundle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This file is part of the AliceVision project.
2-
// Copyright (c) 2025 AliceVision contributors.
32
// Copyright (c) 2024 AliceVision contributors.
43
// This Source Code Form is subject to the terms of the Mozilla Public License,
54
// v. 2.0. If a copy of the MPL was not distributed with this file,

src/aliceVision/sfm/pipeline/expanding/SfmBundle.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This file is part of the AliceVision project.
2-
// Copyright (c) 2025 AliceVision contributors.
32
// Copyright (c) 2024 AliceVision contributors.
43
// This Source Code Form is subject to the terms of the Mozilla Public License,
54
// v. 2.0. If a copy of the MPL was not distributed with this file,

src/aliceVision/sfm/sfmFilters.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ IndexT removeOutliersWithPixelResidualError(sfmData::SfMData& sfmData,
4343
IndexT removeOutliersWithAngleError(sfmData::SfMData& sfmData, const double dMinAcceptedAngle);
4444

4545
/**
46-
* @Brief remove all point constraints which are too far away from their associated landmark
46+
* @brief remove all point constraints which are too far away from their associated landmark
4747
* @param sfmData the sfmData to update
4848
* @param maxDist the maximal allowed distance between the landmark and the constraint
4949
* @return the number of constraints removed

src/aliceVision/sfmData/SfMData.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class SfMData
7070
LandmarksUncertainty _landmarksUncertainty;
7171
/// 2D Constraints
7272
Constraints2D constraints2d;
73-
/// Point constraintss
74-
ConstraintsPoint constraintspoint;
73+
/// Point constraints
74+
ConstraintsPoint constraintsPoint;
7575
/// Rotation priors
7676
RotationPriors rotationpriors;
7777

@@ -144,8 +144,8 @@ class SfMData
144144
* @brief Get ConstraintsPoints
145145
* @return ConstraintsPoints
146146
*/
147-
const ConstraintsPoint& getConstraintsPoint() const { return constraintspoint; }
148-
ConstraintsPoint& getConstraintsPoint() { return constraintspoint; }
147+
const ConstraintsPoint& getConstraintsPoint() const { return constraintsPoint; }
148+
ConstraintsPoint& getConstraintsPoint() { return constraintsPoint; }
149149

150150
/**
151151
* @brief Get RotationPriors

src/software/export/main_exportMatches.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ int aliceVision_main(int argc, char** argv)
148148
indexFilterA = sfmData.findView(filterA);
149149
if (indexFilterA == UndefinedIndexT)
150150
{
151-
ALICEVISION_LOG_ERROR("Could not find corresponding view for : " + filterA);
151+
ALICEVISION_LOG_ERROR("Could not find corresponding view for: " + filterA);
152152
return EXIT_FAILURE;
153153
}
154154
}
@@ -158,7 +158,7 @@ int aliceVision_main(int argc, char** argv)
158158
indexFilterB = sfmData.findView(filterB);
159159
if (indexFilterB == UndefinedIndexT)
160160
{
161-
ALICEVISION_LOG_ERROR("Could not find corresponding view for : " + filterB);
161+
ALICEVISION_LOG_ERROR("Could not find corresponding view for: " + filterB);
162162
return EXIT_FAILURE;
163163
}
164164
}

0 commit comments

Comments
 (0)