Skip to content

Commit 5716cee

Browse files
authored
Merge pull request #1822 from luzpaz/typos-src-alicevision
Fix typos in src/aliceVision
2 parents 589bdf0 + 9a1ee6d commit 5716cee

File tree

148 files changed

+270
-270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+270
-270
lines changed

src/aliceVision/calibration/checkerDetector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ bool CheckerDetector::mergeCheckerboards()
13721372
{
13731373
const CheckerBoard baseBoard = checkers[idRef].first;
13741374

1375-
// Build dictionnary of corners for faster lookup
1375+
// Build dictionary of corners for faster lookup
13761376
std::unordered_map<IndexT, Vec2i> baseCorners;
13771377
for (int i = 0; i < baseBoard.rows(); ++i)
13781378
{

src/aliceVision/calibration/checkerDetector.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class CheckerDetector
111111
* @param source[in] Input image containing checkerboards.
112112
* @param useNestedGrid[in] Indicate if the image contains nested calibration grids.
113113
* @param debug[in] Indicate if debug images should be drawn.
114-
* @return False if a problem occured during detection, otherwise true.
114+
* @return False if a problem occurred during detection, otherwise true.
115115
*/
116116
bool process(const image::Image<image::RGBColor>& source, bool useNestedGrids = false, bool debug = false);
117117

@@ -154,7 +154,7 @@ class CheckerDetector
154154
* @param[out] corners Container for extracted corners.
155155
* @param[in] input Input grayscale image.
156156
* @param[in] scale Scale applied to the image before the extraction.
157-
* @return False if a problem occured during extraction, otherwise true.
157+
* @return False if a problem occurred during extraction, otherwise true.
158158
*/
159159
bool processLevel(std::vector<Vec2>& corners, const image::Image<float>& input, double scale) const;
160160

@@ -305,7 +305,7 @@ class CheckerDetector
305305
* @param[in,out] board Checkerboard to extend.
306306
* @param[in] refinedCorners All detected corners.
307307
* @param[in] nested Extend the board inwards or outwards.
308-
* @return False if a problem occured or if the energy of the extended board is higher than before, otherwise true.
308+
* @return False if a problem occurred or if the energy of the extended board is higher than before, otherwise true.
309309
*/
310310
bool growIterationUp(CheckerBoard& board, const std::vector<CheckerBoardCorner>& refinedCorners, bool nested) const;
311311

@@ -329,7 +329,7 @@ class CheckerDetector
329329
* 2.3. if the new board energy is lower than the first board energy, replace the latter
330330
* 3. remove overlapping boards
331331
*
332-
* @return False if a problem occured during merging, otherwise true.
332+
* @return False if a problem occurred during merging, otherwise true.
333333
*/
334334
bool mergeCheckerboards();
335335

@@ -387,7 +387,7 @@ class CheckerDetector
387387
* A checkboard is considered invalid if one of its rows or columns contains two edges
388388
* that have an absolute angle between them that is above a certain threshold (currently PI/4).
389389
*
390-
* @return False if a problem occured during filtering, otherwise true.
390+
* @return False if a problem occurred during filtering, otherwise true.
391391
*/
392392
bool removeInvalidCheckerboards();
393393

src/aliceVision/calibration/patternDetect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ std::istream& operator>>(std::istream& stream, Pattern& pattern)
4545
#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_CCTAG)
4646
pattern = ASYMMETRIC_CCTAG_GRID;
4747
#else
48-
throw boost::program_options::invalid_option_value("Not builded with CCTag support.");
48+
throw boost::program_options::invalid_option_value("Not built with CCTag support.");
4949
#endif
5050
else
5151
throw boost::program_options::invalid_option_value(std::string("Invalid pattern: ") + token);

src/aliceVision/camera/DistortionRadial.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DistortionRadialK1 : public Distortion
5656
{
5757
public:
5858
/**
59-
* @brief Default contructor, no distortion
59+
* @brief Default constructor, no distortion
6060
*/
6161
DistortionRadialK1() { _distortionParams = {0.0}; }
6262

src/aliceVision/camera/IntrinsicBase.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class IntrinsicBase
375375
/**
376376
* @brief Return true if this ray should be visible in the image
377377
* @param ray input ray to check for visibility
378-
* @return True if this ray is visible theorically
378+
* @return True if this ray is visible theoretically
379379
*/
380380
virtual bool isVisibleRay(const Vec3& ray) const = 0;
381381

@@ -482,7 +482,7 @@ class IntrinsicBase
482482
* @brief Apply intrinsic and extrinsic parameters to unit vector
483483
* from the cameras focus to a point on the camera plane
484484
* @param[in] pose Extrinsic pose
485-
* @param[in] intrinsic Intrinsic camera paremeters
485+
* @param[in] intrinsic Intrinsic camera parameters
486486
* @param[in] x Point in image
487487
* @return The unit vector in 3D space pointing out from the camera to the point
488488
*/

src/aliceVision/camera/IntrinsicScaleOffset.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ double IntrinsicScaleOffset::getFocalLength() const
176176
//That means a larger pixel ratio leads to a smaller focal (in X).
177177
const double pixelAspectRatio = getPixelAspectRatio();
178178

179-
//Assumming the focal length is *ignoring* the stretch
179+
//Assuming the focal length is *ignoring* the stretch
180180
//Thus the returned focal is the bigger focal canceling the pixelAspectRatio
181181
return focalInMillimeters * pixelAspectRatio;
182182
}
@@ -201,7 +201,7 @@ double IntrinsicScaleOffset::getInitialFocalLength() const
201201
//That means a larger pixel ratio leads to a smaller focal (in X).
202202
const double pixelAspectRatio = getPixelAspectRatio();
203203

204-
//Assumming the focal length is *ignoring* the stretch
204+
//Assuming the focal length is *ignoring* the stretch
205205
//Thus the returned focal is the bigger focal canceling the pixelAspectRatio
206206
return focalInMillimeters * pixelAspectRatio;
207207
}

src/aliceVision/colorHarmonization/CommonDataByPair.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CommonDataByPair
2626
virtual ~CommonDataByPair() {}
2727

2828
/**
29-
* Compute mask forthe two images
29+
* Compute mask for the two images
3030
*
3131
* \param[out] maskLeft Mask of the left image (initialized to corresponding image size).
3232
* \param[out] maskRight Mask of the right image (initialized to corresponding image size).

src/aliceVision/colorHarmonization/CommonDataByPair_vldSegment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CommonDataByPair_vldSegment : public CommonDataByPair
5858

5959
// In order to illustrate the gvld(or vld)-consistant neighbors, the following two parameters has been externalized as inputs of the function
6060
// KVLD.
61-
// gvld-consistancy matrix, intitialized to -1, >0 consistancy value, -1=unknow, -2=false
61+
// gvld-consistency matrix, initialized to -1, >0 consistency value, -1=unknow, -2=false
6262
aliceVision::Mat E = aliceVision::Mat::Ones(_matches.size(), _matches.size()) * (-1);
6363

6464
// indices of match in the initial matches, if true at the end of KVLD, a match is kept.

src/aliceVision/colorHarmonization/gainOffsetConstraintBuilder_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(ColorHarmonisation_Simple_offset)
6464
rotate(vec_shifted.begin(), vec_shifted.begin() + OFFET_VALUE, vec_shifted.end());
6565

6666
//-- Try to solve the color consistency between the two histograms
67-
//-- We are looking for gain and offet parameter for each image {g;o}
67+
//-- We are looking for gain and offset parameter for each image {g;o}
6868
//-- and the upper bound precision found by Linfinity minimization.
6969
std::vector<double> vec_solution(2 * 2 + 1);
7070

@@ -125,7 +125,7 @@ BOOST_AUTO_TEST_CASE(ColorHarmonisation_Offset_gain)
125125
std::vector<std::size_t> vec_shifted = histo_offset_gain.GetHist();
126126

127127
//-- Try to solve the color consistency between the two histograms
128-
//-- We are looking for gain and offet parameter for each image {g;o}
128+
//-- We are looking for gain and offset parameter for each image {g;o}
129129
//-- and the upper bound precision found by Linfinity minimization.
130130
std::vector<double> vec_solution(3 * 2 + 1);
131131

src/aliceVision/depthMap/DepthMapEstimator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void DepthMapEstimator::compute(int cudaDeviceId, const std::vector<int>& cams)
504504
}
505505
}
506506

507-
// some objects countains CUDA objects
507+
// some objects contains CUDA objects
508508
// this objects should be destroyed before the end of the program (i.e. the end of the CUDA context)
509509
DeviceCache::getInstance().clear();
510510
sgmPerStream.clear();

0 commit comments

Comments
 (0)