mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
Fix various typos in the source code
## Description Fix various typos in the source code. This includes user facing code, documentation, and source comments. This PR has not been tested. Closes #1605
This commit is contained in:
parent
92004286fd
commit
f4dcf6557f
21 changed files with 30 additions and 30 deletions
|
@ -136,7 +136,7 @@ def findFilesByTypeInFolder(folder, recursive=False):
|
|||
else:
|
||||
output.addFiles([os.path.join(currentFolder, filename) for filename in os.listdir(currentFolder)])
|
||||
else:
|
||||
# if not a diretory or a file, it may be an expression
|
||||
# if not a directory or a file, it may be an expression
|
||||
import glob
|
||||
paths = glob.glob(currentFolder)
|
||||
filesByType = findFilesByTypeInFolder(paths, recursive=recursive)
|
||||
|
@ -186,7 +186,7 @@ def panoramaFisheyeHdr(inputImages=None, inputViewpoints=None, inputIntrinsics=N
|
|||
# when using fisheye images, 'sift' performs better than 'dspsift'
|
||||
featureExtraction.attribute("describerTypes").value = ['sift']
|
||||
# when using fisheye images, the overlap between images can be small
|
||||
# and thus requires many features to get enough correspondances for cameras estimation
|
||||
# and thus requires many features to get enough correspondences for cameras estimation
|
||||
featureExtraction.attribute("describerPreset").value = 'high'
|
||||
return graph
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ Performs Macbeth color checker chart detection.
|
|||
|
||||
Outputs:
|
||||
- the detected color charts position and colors
|
||||
- the associated tranform matrix from "theoric" to "measured"
|
||||
- the associated transform matrix from "theoric" to "measured"
|
||||
assuming that the "theoric" Macbeth chart corners coordinates are:
|
||||
(0, 0), (1675, 0), (1675, 1125), (0, 1125)
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ then it checks the number of features that validates this model and iterate thro
|
|||
desc.BoolParam(
|
||||
name='crossMatching',
|
||||
label='Cross Matching',
|
||||
description='Make sure that the matching process is symmetric (same matches for I->J than fo J->I)',
|
||||
description='Make sure that the matching process is symmetric (same matches for I->J than for J->I)',
|
||||
value=False,
|
||||
uid=[0],
|
||||
),
|
||||
|
|
|
@ -43,7 +43,7 @@ Estimate the seams lines between the inputs to provide an optimal compositing in
|
|||
desc.BoolParam(
|
||||
name='useGraphCut',
|
||||
label='Use Smart Seams',
|
||||
description='Use a graphcut algorithm to optmize seams for better transitions between images.',
|
||||
description='Use a graphcut algorithm to optimize seams for better transitions between images.',
|
||||
value=True,
|
||||
uid=[0],
|
||||
),
|
||||
|
|
|
@ -200,7 +200,7 @@ Upload a textured mesh on Sketchfab.
|
|||
modelEndpoint, **{'data': body, 'headers': headers})
|
||||
chunk.logManager.completeProgressBar()
|
||||
except requests.exceptions.RequestException as e:
|
||||
chunk.logger.error(u'An error occured: {}'.format(e))
|
||||
chunk.logger.error(u'An error occurred: {}'.format(e))
|
||||
raise RuntimeError()
|
||||
if r.status_code != requests.codes.created:
|
||||
chunk.logger.error(u'Upload failed with error: {}'.format(r.json()))
|
||||
|
|
|
@ -116,7 +116,7 @@ It iterates like that, adding cameras and triangulating new 2D features into 3D
|
|||
desc.ChoiceParam(
|
||||
name='observationConstraint',
|
||||
label='Observation Constraint',
|
||||
description='Observation contraint mode used in the optimization:\n'
|
||||
description='Observation constraint mode used in the optimization:\n'
|
||||
' * Basic: Use standard reprojection error in pixel coordinates\n'
|
||||
' * Scale: Use reprojection error in pixel coordinates but relative to the feature scale',
|
||||
value='Scale',
|
||||
|
|
|
@ -273,7 +273,7 @@ Many cameras are contributing to the low frequencies and only the best ones cont
|
|||
desc.BoolParam(
|
||||
name='forceVisibleByAllVertices',
|
||||
label='Force Visible By All Vertices',
|
||||
description='''Triangle visibility is based on the union of vertices visiblity.''',
|
||||
description='''Triangle visibility is based on the union of vertices visibility.''',
|
||||
value=False,
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
|
|
|
@ -31,7 +31,7 @@ def main():
|
|||
|
||||
parser.add_argument(
|
||||
"--useBackground", type=strtobool, required=True,
|
||||
help="Diplay the background image or not.",
|
||||
help="Display the background image or not.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
|
@ -262,8 +262,8 @@ def main():
|
|||
|
||||
# For showing an outline of the object, we need to add two materials to the mesh:
|
||||
# Center and Edge, we are using a method that consists in having a "bold" effect on the Edge Material so we can see it
|
||||
# around the Center material. We use a Solidify Modifier on which we flip normals and reduce Thickness to bellow zero.
|
||||
# The more the thickness get bellow zero, the more the egde will be largely revealed.
|
||||
# around the Center material. We use a Solidify Modifier on which we flip normals and reduce Thickness to below zero.
|
||||
# The more the thickness get below zero, the more the edge will be largely revealed.
|
||||
elif args.model.lower().endswith('.obj'):
|
||||
print("Import OBJ")
|
||||
|
||||
|
|
|
@ -515,7 +515,7 @@ class UIGraph(QObject):
|
|||
@Slot(Node, QPoint, QObject)
|
||||
def moveNode(self, node, position, nodes=None):
|
||||
"""
|
||||
Move 'node' to the given 'position' and also update the positions of 'nodes' if neccessary.
|
||||
Move 'node' to the given 'position' and also update the positions of 'nodes' if necessary.
|
||||
|
||||
Args:
|
||||
node (Node): the node to move
|
||||
|
|
|
@ -20,7 +20,7 @@ Dialog {
|
|||
|
||||
/// Return the text content of this dialog as a simple string.
|
||||
/// Used when copying the message in the system clipboard.
|
||||
/// Can be overriden in components extending MessageDialog
|
||||
/// Can be overridden in components extending MessageDialog
|
||||
function getAsString() {
|
||||
return asString
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import Controls 1.0
|
|||
*/
|
||||
QtObject {
|
||||
|
||||
readonly property string defaultErrorText: "An unexpected error has occured"
|
||||
readonly property string defaultErrorText: "An unexpected error has occurred"
|
||||
|
||||
property Component infoDialog: Component {
|
||||
MessageDialog {
|
||||
|
|
|
@ -63,7 +63,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
/// Duplicate a node and optionnally all the following ones
|
||||
/// Duplicate a node and optionally all the following ones
|
||||
function duplicateNode(duplicateFollowingNodes) {
|
||||
if (duplicateFollowingNodes) {
|
||||
var nodes = uigraph.duplicateNodesFrom(uigraph.selectedNodes)
|
||||
|
|
|
@ -5,12 +5,12 @@ import QtQuick.Controls 2.3
|
|||
/**
|
||||
* SortFilderDelegateModel adds sorting and filtering capabilities on a source model.
|
||||
*
|
||||
* The way model data is accessed can be overriden by redefining the modelData function.
|
||||
* The way model data is accessed can be overridden by redefining the modelData function.
|
||||
* This is useful if the value is not directly accessible from the model and needs
|
||||
* some extra logic.
|
||||
*
|
||||
* Regarding filtering, any type of value can be used as 'filterValue' (variant).
|
||||
* Filtering behavior can also be overriden by redefining the respectFilter function.
|
||||
* Filtering behavior can also be overridden by redefining the respectFilter function.
|
||||
*
|
||||
* Based on http://doc.qt.io/qt-5/qtquick-tutorials-dynamicview-dynamicview4-example.html
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.pragma library
|
||||
|
||||
/**
|
||||
* Perform 'GET' request on url, and bind 'callback' to onreadystatechange (with XHR objet as parameter).
|
||||
* Perform 'GET' request on url, and bind 'callback' to onreadystatechange (with XHR object as parameter).
|
||||
*/
|
||||
function get(url, callback) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
|
|
|
@ -4,8 +4,8 @@ Item {
|
|||
id: root
|
||||
|
||||
// required for perspective transform
|
||||
property real sizeX: 1675.0 // might be overrided in ColorCheckerViewer
|
||||
property real sizeY: 1125.0 // might be overrided in ColorCheckerViewer
|
||||
property real sizeX: 1675.0 // might be overridden in ColorCheckerViewer
|
||||
property real sizeY: 1125.0 // might be overridden in ColorCheckerViewer
|
||||
|
||||
property var colors: null
|
||||
property var window: null
|
||||
|
|
|
@ -200,7 +200,7 @@ FloatingPane {
|
|||
font.pointSize: 10
|
||||
opacity: featureType.viewer.visible ? 1.0 : 0.6
|
||||
}
|
||||
// Tracks visibility toogle
|
||||
// Tracks visibility toggle
|
||||
MaterialToolButton {
|
||||
id: tracksVisibilityButton
|
||||
checkable: true
|
||||
|
@ -213,7 +213,7 @@ FloatingPane {
|
|||
}
|
||||
font.pointSize: 10
|
||||
}
|
||||
// Matches visibility toogle
|
||||
// Matches visibility toggle
|
||||
MaterialToolButton {
|
||||
id: matchesVisibilityButton
|
||||
checkable: true
|
||||
|
@ -225,7 +225,7 @@ FloatingPane {
|
|||
}
|
||||
font.pointSize: 10
|
||||
}
|
||||
// Landmarks visibility toogle
|
||||
// Landmarks visibility toggle
|
||||
MaterialToolButton {
|
||||
id: landmarksVisibilityButton
|
||||
checkable: true
|
||||
|
|
|
@ -94,7 +94,7 @@ void main()
|
|||
else
|
||||
{
|
||||
// Viewport projection breaks down for one or two vertices.
|
||||
// Caclulate what we can here and defer rest to fragment shader.
|
||||
// Calculate what we can here and defer rest to fragment shader.
|
||||
// Since this is coherent for the entire primitive the conditional
|
||||
// in the fragment shader is still cheap as all concurrent
|
||||
// fragment shader invocations will take the same code path.
|
||||
|
|
|
@ -21,7 +21,7 @@ Entity {
|
|||
property Layer frontLayerComponent
|
||||
property var window
|
||||
|
||||
/// Camera to consider for positionning
|
||||
/// Camera to consider for positioning
|
||||
property Camera camera: null
|
||||
|
||||
/// True while at least one media is being loaded
|
||||
|
@ -190,7 +190,7 @@ Entity {
|
|||
// whether MediaLoader has been fully instantiated by the NodeInstantiator
|
||||
property bool fullyInstantiated: false
|
||||
|
||||
// explicitely store some attached model properties for outside use and ease binding
|
||||
// explicitly store some attached model properties for outside use and ease binding
|
||||
readonly property var attribute: model.attribute
|
||||
readonly property int idx: index
|
||||
readonly property var modelSource: attribute || model.source
|
||||
|
@ -216,7 +216,7 @@ Entity {
|
|||
property string finalSource: model.requested ? currentSource : ""
|
||||
|
||||
// To use only if we want to draw the input source and not the current node output (Warning: to use with caution)
|
||||
// There is maybe a better way to do this to avoid overwritting bindings which should be readonly properties
|
||||
// There is maybe a better way to do this to avoid overwriting bindings which should be readonly properties
|
||||
function drawInputSource() {
|
||||
rawSource = Qt.binding(() => instantiatedEntity.currentNode ? instantiatedEntity.currentNode.attribute("input").value: "")
|
||||
currentSource = Qt.binding(() => rawSource)
|
||||
|
|
|
@ -120,7 +120,7 @@ Item {
|
|||
}
|
||||
Action {
|
||||
id: displayLensDistortionToolBarAction
|
||||
text: "Display Lens Distorsion Toolbar"
|
||||
text: "Display Lens Distortion Toolbar"
|
||||
checkable: true
|
||||
checked: true
|
||||
enabled: viewer2D.useLensDistortionViewer
|
||||
|
|
|
@ -613,7 +613,7 @@ ApplicationWindow {
|
|||
Action {
|
||||
text: "About Meshroom"
|
||||
onTriggered: aboutDialog.open()
|
||||
// shoud be StandardKey.HelpContents, but for some reason it's not stable
|
||||
// should be StandardKey.HelpContents, but for some reason it's not stable
|
||||
// (may cause crash, requires pressing F1 twice after closing the popup)
|
||||
shortcut: "F1"
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ class QmlInstantEngine(QQmlApplicationEngine):
|
|||
self._extensions = extensions
|
||||
|
||||
def setVerbose(self, verboseValue):
|
||||
""" Activate (True) or desactivate (False) the verbose. """
|
||||
""" Activate (True) or deactivate (False) the verbose. """
|
||||
self._verbose = verboseValue
|
||||
|
||||
def addFile(self, filename):
|
||||
|
|
Loading…
Add table
Reference in a new issue