plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | mattools/matGeom-master | test_clipPolygon3dHP.m | .m | matGeom-master/tests/geom3d/test_clipPolygon3dHP.m | 2,629 | utf_8 | 0d208bd5615e515aff410f7b36985ebe | function test_suite = test_clipPolygon3dHP
%TEST_CLIPPOLYGON3DHP Test case for the file clipPolygon3dHP
%
% Test case for the file clipPolygon3dHP
% Example
% test_clipPolygon3dHP
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-08-17, ... |
github | mattools/matGeom-master | test_sphericalAngle.m | .m | matGeom-master/tests/geom3d/test_sphericalAngle.m | 1,202 | utf_8 | 5789ee900d2511fdf8733c2c77cb5526 | function test_suite = test_sphericalAngle
%TESTSPHERICALANGLE One-line description here, please.
%
% output = testSphericalAngle(input)
%
% Example
% testSphericalAngle
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-06-21, using Matlab... |
github | mattools/matGeom-master | test_midPoint3d.m | .m | matGeom-master/tests/geom3d/test_midPoint3d.m | 2,100 | utf_8 | f296495177c5972b90b55400aebe42fe | function test_suite = test_midPoint3d
% One-line description here, please.
% output = testMidPoint(input)
%
% Example
% testMidPoint
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-04-22, using Matlab 7.7.0.471 (R2008b)
% Copyright 2009 ... |
github | mattools/matGeom-master | test_cart2sph2d.m | .m | matGeom-master/tests/geom3d/test_cart2sph2d.m | 1,796 | utf_8 | 9974afd0f2dd76a741e41daa11c2925d | function test_suite = test_cart2sph2d
%TEST_CART2SPH2D One-line description here, please.
%
% output = test_cart2sph2d(input)
%
% Example
% testCart2sph2d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-06-29, using Matlab 7.9.0.529 (R2... |
github | mattools/matGeom-master | test_createBasisTransform3d.m | .m | matGeom-master/tests/geom3d/test_createBasisTransform3d.m | 2,132 | utf_8 | 8438a856ca1d6f4e56df765a9b4c70e6 | function test_suite = test_createBasisTransform3d
%TEST_CREATEBASISTRANSFORM3D Test case for the file createBasisTransform3d
%
% Test case for the file createBasisTransform3d
% Example
% test_createBasisTransform3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
... |
github | mattools/matGeom-master | test_projPointOnPlane.m | .m | matGeom-master/tests/geom3d/test_projPointOnPlane.m | 729 | utf_8 | 9e6429def443596f4b5680f214da77ed | function test_suite = test_projPointOnPlane
%TEST_PROJPOINTONPLANE Test case for the file projPointOnPlane
%
% Test case for the file projPointOnPlane
% Example
% test_projPointOnPlane
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2013-07-03... |
github | mattools/matGeom-master | test_distancePointPlane.m | .m | matGeom-master/tests/geom3d/test_distancePointPlane.m | 2,714 | utf_8 | 4fdd5ea21bb9827f93b979e0aa9a22ab | function test_suite = test_distancePointPlane
%testDistancePointPlane One-line description here, please.
% output = testDistancePointPlane(input)
%
% Example
% testDistancePointPlane
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, ... |
github | mattools/matGeom-master | test_polygonArea3d.m | .m | matGeom-master/tests/geom3d/test_polygonArea3d.m | 1,199 | utf_8 | 602aeb8b03d807cb0d91e3d86efce0a7 | function test_suite = test_polygonArea3d
%TEST_POLYGONAREA3D Test case for the file polygonArea3d
%
% Test case for the file polygonArea3d
% Example
% test_polygonArea3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2012-02-24, using Matl... |
github | mattools/matGeom-master | test_intersectBoxes3d.m | .m | matGeom-master/tests/geom3d/test_intersectBoxes3d.m | 646 | utf_8 | 7bb37b1641ee415704542ecaea2457e1 | function test_suite = test_intersectBoxes3d
%TESTINTERSECTBOXES3D One-line description here, please.
%
% output = testIntersectBoxes3d(input)
%
% Example
% testIntersectBoxes3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2010-07-26, usin... |
github | mattools/matGeom-master | test_isCoplanar.m | .m | matGeom-master/tests/geom3d/test_isCoplanar.m | 1,317 | utf_8 | c3eee76947130905755922e654493282 | function test_suite = test_isCoplanar
%TEST_ISCOPLANAR Test case for the file isCoplanar
%
% Test case for the file isCoplanar
%
% Example
% test_isCoplanar
%
% See also
% isCoplanar
% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2019-03-15, using Matlab 9.5.0.944444 (R2018b)... |
github | mattools/matGeom-master | test_clipConvexPolygon3dHP.m | .m | matGeom-master/tests/geom3d/test_clipConvexPolygon3dHP.m | 2,713 | utf_8 | a864094c9e64683d3b9cec059538a95f | function test_suite = test_clipConvexPolygon3dHP
%TEST_clipConvexPolygon3dHP Test case for the file clipConvexPolygon3dHP
%
% Test case for the file clipConvexPolygon3dHP
% Example
% test_clipConvexPolygon3dHP
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.... |
github | mattools/matGeom-master | test_transformPoint3d.m | .m | matGeom-master/tests/geom3d/test_transformPoint3d.m | 1,766 | utf_8 | 23eb92de4a3942fbc01597d0355a15e1 | function test_suite = test_transformPoint3d
%Check transformation of points
% output = testTransformPoint3d(input)
%
% Example
% testTransformPoint3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)
... |
github | mattools/matGeom-master | test_planePosition.m | .m | matGeom-master/tests/geom3d/test_planePosition.m | 1,762 | utf_8 | adb886264fbd15687a964b10b3b179a3 | function test_suite = test_planePosition
%TEST_PLANEPOSITION Test case for the file planePosition
%
% Test case for the file planePosition
% Example
% test_planePosition
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2013-10-09, using Matl... |
github | mattools/matGeom-master | test_circle3dPosition.m | .m | matGeom-master/tests/geom3d/test_circle3dPosition.m | 910 | utf_8 | 6230b56ce537790da95f4d95822a1baa | function test_suite = test_circle3dPosition
%TEST_CIRCLE3DPOSITION One-line description here, please.
%
% output = test_circle3dPosition(input)
%
% Example
% testCirclePosition
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-06-21, usin... |
github | mattools/matGeom-master | test_drawEdge3d.m | .m | matGeom-master/tests/geom3d/test_drawEdge3d.m | 833 | utf_8 | e9f065780d03f1e4372d16e96e73d357 | function test_suite = test_drawEdge3d
%Check there is no error when drawing 3D edges
% output = testDrawEdge3d(input)
%
% Example
% testDrawEdge3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)
% C... |
github | mattools/matGeom-master | test_isPointOnEdge3d.m | .m | matGeom-master/tests/geom3d/test_isPointOnEdge3d.m | 1,263 | utf_8 | 5adaa26f0aa8df800000a9b33db09a1c | function tests = test_isPointOnEdge3d
% Test suite for the file isPointOnEdge3d.
%
% Test suite for the file isPointOnEdge3d
%
% Example
% test_isPointOnEdge3d
%
% See also
% isPointOnEdge3d
% ------
% Author: David Legland
% e-mail: david.legland@inrae.fr
% Created: 2021-02-24, using Matlab 9.9.0.15700... |
github | mattools/matGeom-master | test_createScaling3d.m | .m | matGeom-master/tests/geom3d/test_createScaling3d.m | 2,282 | utf_8 | f3f0f965d347c32c2cb10e4844d918df | function test_suite = test_createScaling3d
%Check creation of rotation around Ox axis
% output = testCreateRotationOx(input)
%
% Example
% testCreateRotationOx
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)
% Co... |
github | mattools/matGeom-master | test_sph2cart2.m | .m | matGeom-master/tests/geom3d/test_sph2cart2.m | 1,791 | utf_8 | 32c142d885bf22d71014640a2954aabe | function test_suite = test_sph2cart2
%TESTSPH2CART2 One-line description here, please.
%
% output = testSph2cart2(input)
%
% Example
% testSph2cart2
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@inrae.fr
% Created: 2011-06-29, using Matlab 7.9.0.529 (R2009b)
% Copy... |
github | mattools/matGeom-master | test_distancePointLine3d.m | .m | matGeom-master/tests/geom3d/test_distancePointLine3d.m | 685 | utf_8 | 409ae615e7db535facd6677a4caf1c75 | function test_suite = test_distancePointLine3d
%TESTDISTANCEPOINTLINE3D One-line description here, please.
% output = testDistancePointLine3d(input)
%
% Example
% testDistancePointLine3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19... |
github | mattools/matGeom-master | test_vectorAngle3d.m | .m | matGeom-master/tests/geom3d/test_vectorAngle3d.m | 2,062 | utf_8 | 67d33187b6d99fd0c625cc8506f4548a | function test_suite = test_vectorAngle3d
%TESTVECTORANGLE3D One-line description here, please.
%
% output = testVectorAngle3d(input)
%
% Example
% testVectorAngle3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2010-11-16, using Matlab 7.9.0.529 (... |
github | mattools/matGeom-master | test_isParallel3d.m | .m | matGeom-master/tests/geom3d/test_isParallel3d.m | 1,308 | utf_8 | 5860f73cdc3c7ed11b2a331cb5bb97d7 | function test_suite = test_isParallel3d
%Check parallelism of 2 vectors
% output = testIsParallel3d(input)
%
% Example
% testIsParallel3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)
% Copyright ... |
github | mattools/matGeom-master | test_transformLine3d.m | .m | matGeom-master/tests/geom3d/test_transformLine3d.m | 1,055 | utf_8 | 66345955bad99fb87fff1852808ec41d | function test_suite = test_transformLine3d
%Check transformation of 3Dlines
% output = testTransformLine3d(input)
%
% Example
% testTransformLine3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)
% ... |
github | mattools/matGeom-master | test_isPointInEllipsoid.m | .m | matGeom-master/tests/geom3d/test_isPointInEllipsoid.m | 834 | utf_8 | 952fa31aea3d5a43289dd0532aacd2e9 | function tests = test_isPointInEllipsoid
% Test suite for the file isPointInEllipsoid.
%
% Test suite for the file isPointInEllipsoid
%
% Example
% test_isPointInEllipsoid
%
% See also
% isPointInEllipsoid
% ------
% Author: David Legland
% e-mail: david.legland@inrae.fr
% Created: 2020-11-20, using Mat... |
github | mattools/matGeom-master | test_intersectLineCylinder.m | .m | matGeom-master/tests/geom3d/test_intersectLineCylinder.m | 4,576 | utf_8 | a9897ba798868f9b70154d1b497ea7d5 | function test_suite = test_intersectLineCylinder
%Check parallelity of 2 vectors
% output = testIsParallel3d(input)
%
% Example
% testIsParallel3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)
% C... |
github | mattools/matGeom-master | test_reversePlane.m | .m | matGeom-master/tests/geom3d/test_reversePlane.m | 626 | utf_8 | 6e6a1c42555d5cf6f5174b856051a547 | function test_suite = test_reversePlane
%TEST_REVERSEPLANE Test case for the file reversePlane
%
% Test case for the file reversePlane
% Example
% test_reversePlane
%
% See also
%
% ------
% Author: David Legland
% e-mail: david.legland@nantes.inra.fr
% Created: 2017-02-03, using Matlab 9.1.0.441655 (R201... |
github | mattools/matGeom-master | test_createRotationVector3d.m | .m | matGeom-master/tests/geom3d/test_createRotationVector3d.m | 1,243 | utf_8 | 8a64b4d203180adb9db15cebae1fe5cc | function test_suite = test_createRotationVector3d
%TEST_CREATEROTATIONVECTOR3D Test case for the file createRotationVector3d
%
% Test case for the file createRotationVector3d
%
% Example
% runtests('test_createRotationVector3d.m')
%
% See also
%
% ------
% Author: oqilipo
% Created: 2017-08-08, using Matl... |
github | mattools/matGeom-master | test_isTransform3d.m | .m | matGeom-master/tests/geom3d/test_isTransform3d.m | 1,967 | utf_8 | 282a1588544d29acc01f7acfe4c0923a | function test_suite = test_isTransform3d
%Check if input is a homogeneous transformation
%
% Example
% runtests('test_isTransform3d.m')
%
% ------
% Author: oqilipo
% Created: 2018-07-05
% Copyright 2018
test_suite = functiontests(localfunctions);
function testPureRotationAndSize(testCase)
rot = createRotationO... |
github | mattools/matGeom-master | test_intersectLinePolygon3d.m | .m | matGeom-master/tests/geom3d/test_intersectLinePolygon3d.m | 1,656 | utf_8 | 15f96a2241e47e03748021a3faad6928 | function test_suite = test_intersectLinePolygon3d
%TESTINTERSECTLINEPOLYGON3D One-line description here, please.
%
% output = testIntersectLinePolygon3d(input)
%
% Example
% testIntersectLinePolygon3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Crea... |
github | mattools/matGeom-master | test_triangleArea3d.m | .m | matGeom-master/tests/geom3d/test_triangleArea3d.m | 1,730 | utf_8 | a4c7364f927e145d19c510ec03ccc350 | function test_suite = test_triangleArea3d
%TEST_TRIANGLEAREA3D Test case for the file triangleArea3d
%
% Test case for the file triangleArea3d
% Example
% test_triangleArea3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-08-23, using... |
github | mattools/matGeom-master | test_isPerpendicular3d.m | .m | matGeom-master/tests/geom3d/test_isPerpendicular3d.m | 1,150 | utf_8 | f1e626de54bcaa0775efe55f3a547951 | function test_suite = test_isPerpendicular3d
%Check orthogonality 2 vectors
% output = testIsPerpendicular3d(input)
%
% Example
% testIsPerpendicular3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-19, using Matlab 7.7.0.471 (R2008b)... |
github | mattools/matGeom-master | test_clipLine3d.m | .m | matGeom-master/tests/geom3d/test_clipLine3d.m | 4,162 | utf_8 | 12f2b20452253b56b233ed9160a51b9a | function test_suite = test_clipLine3d
%testClipLine3d One-line description here, please.
% output = testClipLine3d(input)
%
% Example
% testClipLine3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2009-06-22, using Matlab 7.7.0.471 (R2008b)... |
github | mattools/matGeom-master | test_clipPlane.m | .m | matGeom-master/tests/geom3d/test_clipPlane.m | 1,754 | utf_8 | f14add611e0245c076469353faa95e05 | function tests = test_clipPlane
% Test suite for the file clipPlane.
%
% Test suite for the file clipPlane
%
% Example
% test_clipPlane
%
% See also
% clipPlane
% ------
% Author: David Legland
% e-mail: david.legland@inrae.fr
% Created: 2021-11-09, using Matlab 9.10.0.1684407 (R2021a) Update 3
% Copyri... |
github | mattools/matGeom-master | test_eulerAngles.m | .m | matGeom-master/tests/geom3d/test_eulerAngles.m | 8,933 | utf_8 | 79e8f84e9bebf0ff53c9737241de11ae | function test_suite = test_eulerAngles
%TESTEULERANGLES Test conversion euler angles <-> rotation matrix
%
% output = test_EulerAngles(input)
%
% Example
% runtests('test_EulerAngles.m')
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2011-06-... |
github | mattools/matGeom-master | test_orientedBox3d.m | .m | matGeom-master/tests/geom3d/test_orientedBox3d.m | 941 | utf_8 | ac3234832744c8c34d2f64d5e8aeff46 | function test_suite = test_orientedBox3d
%TEST_ORIENTEDBOX3D Test case for the file orientedBox3d
%
% Test case for the file orientedBox3d
%
% Example
% test_orientedBox3d
%
% See also
% orientedBox3d
%
% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2018-07-26, using Matlab 9.... |
github | mattools/matGeom-master | test_anglePoints3d.m | .m | matGeom-master/tests/geom3d/test_anglePoints3d.m | 1,361 | utf_8 | 0e1b3b58603a53f101a03e63c97bf258 | function test_suite = test_anglePoints3d
%TEST_ANGLEPOINTS3D Test case for the file anglePoints3d
%
% Test case for the file anglePoints3d
% Example
% test_anglePoints3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2014-05-28, using Matl... |
github | mattools/matGeom-master | test_planePoint.m | .m | matGeom-master/tests/geom3d/test_planePoint.m | 1,366 | utf_8 | ba4b0a97c974697ad522a0022ce9b8bf | function test_suite = test_planePoint
%TEST_PLANEPOINT Test case for the file planePoint
%
% Test case for the file planePoint
% Example
% test_planePoint
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Created: 2013-10-09, using Matlab 7.9.0.529 (R... |
github | mattools/matGeom-master | test_isPointOnLine3d.m | .m | matGeom-master/tests/geom3d/test_isPointOnLine3d.m | 1,248 | utf_8 | 8258e9b33c956d522d0a1ff179eec7af | function tests = test_isPointOnLine3d
% Test suite for the file isPointOnLine3d.
%
% Test suite for the file isPointOnLine3d
%
% Example
% test_isPointOnLine3d
%
% See also
% isPointOnLine3d
% ------
% Author: David Legland
% e-mail: david.legland@inrae.fr
% Created: 2021-02-24, using Matlab 9.9.0.15700... |
github | mattools/matGeom-master | test_distancePointEdge3d.m | .m | matGeom-master/tests/geom3d/test_distancePointEdge3d.m | 1,260 | utf_8 | ec1c7781bd4fda25658fdac30dc288fc | function test_suite = test_distancePointEdge3d
%TEST_DISTANCEPOINTEDGE3D Test case for the file distancePointEdge3d
%
% Test case for the file distancePointEdge3d
% Example
% test_distancePointEdge3d
%
% See also
%
%
% ------
% Author: David Legland
% e-mail: david.legland@grignon.inra.fr
% Crea... |
github | mattools/matGeom-master | distancePointMesh.m | .m | matGeom-master/matGeom/meshes3d/distancePointMesh.m | 10,849 | utf_8 | 86b312bb86d0c69722db134bea5f939c | function [dist, proj] = distancePointMesh(points, vertices, faces, varargin)
%DISTANCEPOINTMESH Shortest distance between a (3D) point and a triangle mesh.
%
% DIST = distancePointMesh(POINTS, VERTICES, FACES)
% Returns the shortest distance between the query point(s) POINTS and the
% triangular mesh defined by ... |
github | mattools/matGeom-master | readMesh_ply.m | .m | matGeom-master/matGeom/meshes3d/readMesh_ply.m | 17,855 | iso_8859_1 | 58aa3efad8d90aa31ee6ae331347d837 | function varargout = readMesh_ply(fileName)
%READMESH_PLY Read mesh data stored in PLY (Stanford triangle) format.
%
% [V, F] = readMesh_ply(FNAME)
%
% Example
% readMesh_ply
%
% References
% Wrapper function for Gabriel Peyré's read_ply that is a wrapper
% function of Pascal Getreuer's plyread.
%
% See a... |
github | mattools/matGeom-master | meshCurvatures.m | .m | matGeom-master/matGeom/meshes3d/meshCurvatures.m | 8,335 | utf_8 | 9e2f66a339741b7d8b83268e17389f4e | function [C1, C2, U1, U2, H, K, N] = meshCurvatures(vertices, faces, varargin)
%MESHCURVATURES Compute principal curvatures on mesh vertices.
%
% [C1, C2] = meshCurvatures(VERTICES, FACES)
% Computes the principal curvatures C1 and C2 for each vertex of the mesh
% defined by VERTICES and FACES.
%
% [C1, C2] = m... |
github | mattools/matGeom-master | triangulatePolygonPair3d.m | .m | matGeom-master/matGeom/meshes3d/triangulatePolygonPair3d.m | 6,365 | utf_8 | 7c31dfdff3a31bbb392b29a63ba12683 | function [tri, weight] = triangulatePolygonPair3d(poly1, poly2, varargin)
% TRIANGULATEPOLYGONPAIR3D Compute a triangulation between a pair of 3D polygons.
%
% TRI = triangulatePolygonPair3d(POLY1, POLY2)
% Computes a triangulation between vertices of the two input polygons.
% Each triangle refer to one vertex of... |
github | mattools/matGeom-master | meshSurfaceArea.m | .m | matGeom-master/matGeom/meshes3d/meshSurfaceArea.m | 1,968 | utf_8 | fba2b6adb6532b7a50f35667b449017f | function area = meshSurfaceArea(varargin)
%MESHSURFACEAREA Surface area of a polyhedral mesh.
%
% S = meshSurfaceArea(V, F)
% S = meshSurfaceArea(V, E, F)
% Computes the surface area of the mesh specified by vertex array V and
% face array F. Vertex array is a NV-by-3 array of coordinates.
% Face arra... |
github | mattools/matGeom-master | splitMesh.m | .m | matGeom-master/matGeom/meshes3d/splitMesh.m | 4,199 | utf_8 | 593be35c56149ae2517ae6193d25e048 | function meshes = splitMesh(vertices, faces, varargin)
%SPLITMESH Return the connected components of a mesh.
%
% MESHES = splitMesh(VERTICES, FACES) returns the connected components of
% the mesh defined by vertices and faces as a struct array with the
% fields vertices and faces sorted by increasing vertex num... |
github | mattools/matGeom-master | drawEdge.m | .m | matGeom-master/matGeom/geom2d/drawEdge.m | 3,329 | utf_8 | b9c6078efc94f5d446382cc0c4d0cbce | function varargout = drawEdge(varargin)
%DRAWEDGE Draw an edge defined by its two extremities.
%
% drawEdge(x1, y1, x2, y2);
% draw an edge between the points (x1 y1) and (x2 y2).
%
% drawEdge([x1 y1 x2 y2]) ;
% drawEdge([x1 y1], [x2 y2]);
% specify data either as bundled edge, or as 2 points
%
... |
github | mattools/matGeom-master | enclosingCircle.m | .m | matGeom-master/matGeom/geom2d/enclosingCircle.m | 1,975 | utf_8 | 17778381e687d4d833c733452ea3b30e | function circle = enclosingCircle(pts)
%ENCLOSINGCIRCLE Find the minimum circle enclosing a set of points.
%
% CIRCLE = enclosingCircle(POINTS);
% computes the circle CIRCLE=[xc yc r] which encloses all the points POINTS
% given as a N-by-2 array.
%
%
% Rewritten from a file from
% Yazan Ahed... |
github | mattools/matGeom-master | minDistancePoints.m | .m | matGeom-master/matGeom/geom2d/minDistancePoints.m | 6,794 | utf_8 | c042a1368b126b19a5b75c80f536e516 | function varargout = minDistancePoints(p1, varargin)
%MINDISTANCEPOINTS Minimal distance between several points.
%
% DIST = minDistancePoints(PTS)
% Returns the minimum distance between all pairs of points in PTS. PTS
% is a N-by-D array of values, N being the number of points and D the
% dimension of the... |
github | mattools/matGeom-master | centroidalVoronoi2d_MC.m | .m | matGeom-master/matGeom/graphs/centroidalVoronoi2d_MC.m | 6,528 | utf_8 | fc4d9288393e68bd6bf458bc397430aa | function [germs, germPaths] = centroidalVoronoi2d_MC(germs, poly, varargin)
%CENTROIDALVORONOI2D_MC Centroidal Voronoi tesselation by Monte-Carlo.
%
% PTS = centroidalVoronoi2d_MC(NPTS, POLY)
% Generate points in a polygon based on centroidal voronoi tesselation.
% Centroidal germs can be computed by using the Ll... |
github | mattools/matGeom-master | gcontour3d.m | .m | matGeom-master/matGeom/graphs/gcontour3d.m | 3,996 | utf_8 | 60468114b702f228e6816b9d91857c89 | function [nodes, edges, faces] = gcontour3d(img)
%GCONTOUR3D Create contour graph of a 3D binary image.
%
% deprecated: use imageBoundaryGraph instead
%
% See also
% imageBoundaryGraph
% ------
% Author: David Legland
% E-mail: david.legland@inrae.fr
% Created: 2004-06-28
% Copyright 2004-2022 INRA - TPV URP... |
github | mattools/matGeom-master | centroidalVoronoi2d.m | .m | matGeom-master/matGeom/graphs/centroidalVoronoi2d.m | 4,651 | utf_8 | a40713f36f75e2dc934ca5d6a0f6e9d2 | function [germs, germPaths] = centroidalVoronoi2d(germs, poly, varargin)
%CENTROIDALVORONOI2D Centroidal Voronoi tesselation within a polygon.
%
% PTS = centroidalVoronoi2d(NPTS, POLY)
% Generate points in a polygon based on centroidal voronoi tesselation.
% Centroidal germs can be computed by using the Llyo... |
github | mattools/matGeom-master | drawGraph.m | .m | matGeom-master/matGeom/graphs/drawGraph.m | 6,425 | utf_8 | 176069b4708f2bdabd878c4a2edcf019 | function varargout = drawGraph(varargin)
%DRAWGRAPH Draw a graph, given as a set of vertices and edges.
%
% drawGraph(NODES, EDGES)
% Draws a graph specified by a set of nodes (array N-by-2 or N-by-3,
% corresponding to coordinate of each node), and a set of edges (an array
% NE-by-2, containing for each... |
github | mattools/matGeom-master | intersectPolylines.m | .m | matGeom-master/matGeom/polygons2d/intersectPolylines.m | 5,164 | utf_8 | 2b9841a18498e21a28378fb93d80703b | function pts = intersectPolylines(poly1, varargin)
%INTERSECTPOLYLINES Find the common points between 2 polylines.
%
% INTERS = intersectPolylines(POLY1, POLY2)
% Returns the intersection points between two polylines. Each polyline is
% defined by a N-by-2 array representing coordinates of its vertices:
% ... |
github | mattools/matGeom-master | meshReduce.m | .m | matGeom-master/matGeom/deprecated/meshes3d/meshReduce.m | 9,864 | utf_8 | f9d3f4aab8807ebf1ce603ef8016f7fc | function varargout = meshReduce(nodes, varargin)
%MESHREDUCE Merge coplanar faces of a polyhedral mesh.
%
% Note: deprecated, should use "mergeCoplanarFaces" instead
%
% [NODES FACES] = meshReduce(NODES, FACES)
% [NODES EDGES FACES] = meshReduce(NODES, EDGES, FACES)
% NODES is a set of 3D points (as a Nn-by-3 a... |
github | mattools/matGeom-master | geodesicCylinder.m | .m | matGeom-master/matGeom/geom3d/geodesicCylinder.m | 3,657 | utf_8 | 7482f7885aa4171cab5adcd2dd7f67dc | function [geo, geoLength, conGeo, conGeoLength] = geodesicCylinder(pts, cyl, varargin)
%GEODESICCYLINDER computes the geodesic between two points on a cylinder.
%
% [GEO, GEOLENGTH] = geodesicCylinder(PTS, CYL) computes the geodesic
% between the two points PTS projected onto the infinite cylinder CYL.
% PTS i... |
github | mattools/matGeom-master | drawArrow3d.m | .m | matGeom-master/matGeom/geom3d/drawArrow3d.m | 6,331 | utf_8 | 14efa1a009c3fdad59b4b4fe2e8574aa | function varargout = drawArrow3d(pos, vec, varargin)
%DRAWARROW3D Plot a quiver of 3D arrows.
%
% drawArrow3d(pos, vec)
% Plots 3D arrows given the (pos)ition array [x1 y1 z1; x2 y2 z2; ...]
% and the (vec)tor array [dx1 dy1 dz1; dx2 dy2 dz2; ...].
%
% drawArrow3d(pos, vec, color)
% Optional positional argu... |
github | mattools/matGeom-master | createScaling3d.m | .m | matGeom-master/matGeom/geom3d/createScaling3d.m | 2,172 | utf_8 | 61acc1637f3f86c9a5425dc3ff0a0b07 | function trans = createScaling3d(varargin)
%CREATESCALING3D Create the 4x4 matrix of a 3D scaling.
%
% TRANS = createScaling3d(S);
% returns the scaling transform corresponding to a scaling factor S in
% each direction. S can be a scalar, or a 1-by-3 vector containing the
% scaling factor in each directio... |
github | mattools/matGeom-master | transformPolygon3d.m | .m | matGeom-master/matGeom/geom3d/transformPolygon3d.m | 2,103 | utf_8 | d3e72c02703e1ee2ec5234d299258c96 | function tfmPoly = transformPolygon3d(poly, tfm)
%TRANSFORMPOINT3D Transform a polygon with a 3D affine transform.
%
% TFMPOLY = transformPoint3d(POLY, TFM);
% returns the polygon TFMPOLY by transforming POLY according to the
% affine transform specified by TFM. POLY can be either 2D or 3D. If POLY
% is 2D, zer... |
github | mattools/matGeom-master | fitCircle3d.m | .m | matGeom-master/matGeom/geom3d/fitCircle3d.m | 5,457 | utf_8 | 923136d5572a8f2fdab17dbb377a8a74 | function [fittedCircle, circleNormal, residuals] = fitCircle3d(pts, varargin)
%FITCIRCLE3D Fit a 3D circle to a set of points.
%
% [FITTEDCIRCLE, CIRCLENORMAL, RESIDUALS] = fitCircle3d(PTS)
%
% Example
% % points on a 2d circle with noise
% nop = randi([5 50],1,1);
% radius = randi([5 25],1,1);
% po... |
github | basson86/3D_IR_Thermal_Mapping-master | Direct_Emiss.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Figure 8 _ Pot Phantom Data (latest MAIN)/cylinder pot experiment/Direct_Emiss.m | 897 | utf_8 | 012538afa4407e2106b7b576407266af | %clear all; %close all;
function [phi,rho_phi,emis]=Direct_Emiss(n1,n2,alpha,lamda);
% optical properties of skin & water
% n1=3.1;
% n2=1;
% alpha= 10*10^5; % m^(-1)
% lamda=4*10^(-6) ;% m
%% incident angle:
phi=0:0.01:pi/2;
%% complex refrative index : n
%k1= alpha.*lamda./(4.*phi);
k1= alpha*lamda/4;
n= n1+ i... |
github | basson86/3D_IR_Thermal_Mapping-master | Read_IR_raw_data_NEW.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Matlab Codes for new camera/Read_IR_raw_data_NEW.m | 424 | utf_8 | a83cc5a534b5181bd2bdaed16b6111bf | % Read IR raw data and reshape it to 632x475 matrix
% by Tze-Yuan Cheng 2013/02/18
function [imR_ir]=Read_IR_raw_data_NEW(stamp,number)
imgnameR= strcat(stamp,'_',num2str(number,'%04.0f'),'.raw');
% the format of frame number is 4 digit integrs
fid= fopen(imgnameR,'r','b');
dataR= fread(fid, [300832 1], 'uint16');
f... |
github | basson86/3D_IR_Thermal_Mapping-master | Average_multiple_frames.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Matlab Codes for new camera/Average_multiple_frames.m | 610 | utf_8 | 449a3e6b67a4c7e64fba8fe5fe727671 | % Read multiple frames for a single black body temperature level
% by Tze-Yuan Cheng 2013/02/18
function [ImR_Avg]=Average_multiple_frames(time_stamp,initial,interval,final)
%Number_of_frame=(final-initial+1)/interval; % total number of frames to be read
Number_of_frame = 0;
ImR_Sum= zeros(476,632);% Initialize th... |
github | basson86/3D_IR_Thermal_Mapping-master | anisodiff.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Temp_measurment/anisodiff.m | 2,611 | utf_8 | a26847ea60edc0d85b073b7608f4179f | % ANISODIFF - Anisotropic diffusion.
%
% Usage:
% diff = anisodiff(im, niter, kappa, lambda, option)
%
% Arguments:
% im - input image
% niter - number of iterations.
% kappa - conduction coefficient 20-100 ?
% lambda - max value of .25 for stability
% option - 1 Perona Ma... |
github | basson86/3D_IR_Thermal_Mapping-master | LucasKanadeInverseAffine.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Temp_measurment/LucasKanadeInverseAffine.m | 9,996 | utf_8 | 2243c02015a0895c004bf872a647640f | function [p,I_roi,T_error]=LucasKanadeInverseAffine(I,p,I_template,Wn,Options)
% This is an Robust Affine Lucas Kanade template tracker, which performs
% a template tracking step on a 2D image. It is called inverse because
% template and image are switched in the equations for more time
% efficient tracking.
%
% [p,I... |
github | basson86/3D_IR_Thermal_Mapping-master | Vessel_image.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Temp_measurment/Vessel_image.m | 659 | utf_8 | 7437c19e1f7b1527bae5117cb2cfb863 | % 2012/11/25, testing the blood vessel segmention algorithm from :(2007)Physiology-Based Face Recognition in the thermal infrared spectrum
function [ImV]= Vessel_image(ImT)
% parameters for iteration
niter= 5;
kappa= 20;
lambda= 0.1;
option= 1;
% niter - number of iterations.
% kappa - conduction c... |
github | basson86/3D_IR_Thermal_Mapping-master | LucasKanadeAffine.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Temp_measurment/LucasKanadeAffine.m | 7,396 | utf_8 | 3623ea11cde43622547fd79eefd30a35 | function [p,I_roi,T_error]=LucasKanadeAffine(I,p,I_template,Options)
% This is an Affine Lucas Kanade template tracker, which performs
% a template tracking step on a 2D image.
%
% [p,I_roi,T_error]=LucasKanadeAffine(I,p,I_template,Options)
%
% inputs,
% I : A 2d image of type double (movie frame)
% p : 6 paramet... |
github | basson86/3D_IR_Thermal_Mapping-master | recursivepartition.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/Lesion_segmentation_using_Random_walker/recursivepartition.m | 6,561 | utf_8 | 4256fefd5a912098ab9223e2ce5207ea | function segAnswer=recursivepartition(W,stop,algFlag,volFlag,points)
%Function segAnswer=recursivepartition(W,stop,algFlag,volFlag,points)
%recursively calls partitiongraph.m until the stop criteria is statisfied.
%Function outputs a vector containing an integer label for every node
%corresponding to the unsupervised... |
github | basson86/3D_IR_Thermal_Mapping-master | LucasKanadeInverseAffine.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/LK_Template_Tracking_version3a/LucasKanadeInverseAffine.m | 9,996 | utf_8 | 2243c02015a0895c004bf872a647640f | function [p,I_roi,T_error]=LucasKanadeInverseAffine(I,p,I_template,Wn,Options)
% This is an Robust Affine Lucas Kanade template tracker, which performs
% a template tracking step on a 2D image. It is called inverse because
% template and image are switched in the equations for more time
% efficient tracking.
%
% [p,I... |
github | basson86/3D_IR_Thermal_Mapping-master | LucasKanadeAffine.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/Matlab Codes to be Included/LK_Template_Tracking_version3a/LucasKanadeAffine.m | 7,396 | utf_8 | 3623ea11cde43622547fd79eefd30a35 | function [p,I_roi,T_error]=LucasKanadeAffine(I,p,I_template,Options)
% This is an Affine Lucas Kanade template tracker, which performs
% a template tracking step on a 2D image.
%
% [p,I_roi,T_error]=LucasKanadeAffine(I,p,I_template,Options)
%
% inputs,
% I : A 2d image of type double (movie frame)
% p : 6 paramet... |
github | basson86/3D_IR_Thermal_Mapping-master | do_select_images.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_select_images.m | 1,769 | utf_8 | 0d0475eee98ccd1ab9dd97f780ecbfbb | %do_select_images()
% UI function.
% Kinect calibration toolbox by DHC
function do_select_images()
%Clear globals
clear global dataset_path rfiles rsize dfiles
clear global rgb_grid_p rgb_grid_x
clear global depth_corner_p depth_corner_x
clear global depth_plane_poly depth_plane_mask
clear global calib0
clear global i... |
github | basson86/3D_IR_Thermal_Mapping-master | do_select_rgb_corners.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_select_rgb_corners.m | 3,003 | utf_8 | 2ba6ab5e6e2db89aa38bba024d3ce3e5 | %do_select_rgb_corners()
% UI function.
% Kinect calibration toolbox by DHC
function do_select_rgb_corners()
%Input
global dataset_path rfiles
%Output
global rgb_grid_p rgb_grid_x
%Check previous steps
if(isempty(rfiles))
do_select_images();
end
fprintf('-------------------\n');
fprintf('Selecting rgb corners\n');... |
github | basson86/3D_IR_Thermal_Mapping-master | select_plane_corners.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/select_plane_corners.m | 1,132 | utf_8 | 4f64ae08900e29f0c595476b2e7df70b | %corners=select_plane_corners(imd)
% UI function. Asks the user to select the plane corners for the depth
% images.
%
% Kinect calibration toolbox by DHC
function corners=select_plane_corners(imd)
corners = zeros(2,4);
%Show img
im_rgb = visualize_disparity(imd);
figure(1);
clf;
imshow(im_rgb);
title('LMB=select corn... |
github | basson86/3D_IR_Thermal_Mapping-master | rgb_calib.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/rgb_calib.m | 2,031 | utf_8 | 3e270ceb16a7ef2bc591ce9b65bdc1ea | %[K,R,t,kc,error_var]=rgb_calib(K0,kc0,R0,t0,rgb_grid_p,rgb_grid_x,use_fixed_intrinsic)
% Calibration of a color camera through non-linear minimization.
%
% K0 [3x3] initial intrinsics matrix
% kc0 [1x5] initial distortion coefficients
% R0 {N}[3x3] cell array of initial world to camera rotations
% t0 {N}[3x1] cell arr... |
github | basson86/3D_IR_Thermal_Mapping-master | disparity2world.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/disparity2world.m | 1,279 | utf_8 | 7b8a451814299756f3e6fc44e5486ad3 | %[Xw,idx]=disparity2world(u,v,disparity,calib)
% Converts a series of points in a depth image to points in world
% coordinate system.
%
% u [1xP] uv coordinates in the depth image
% v [1xP] uv coordinates in the depth image
% disparity [1xP] disparity values
% calib [struct] calibration values.
%
% Xw [3xP] points in... |
github | basson86/3D_IR_Thermal_Mapping-master | reduce_depth_samples.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/reduce_depth_samples.m | 1,028 | utf_8 | 8d6d72b1f7b366ae0132bb1c601da1bf | %reduce_depth_point_count(max_count)
% Reduces the total ammount of points in depth_plane_points and
% depth_plane_disparity to make the minimization possible with limited
% memory.
%
% Kinect calibration toolbox by DHC
function [points, disparity]=reduce_depth_samples(points_in, disparity_in, max_count)
if(isempty(m... |
github | basson86/3D_IR_Thermal_Mapping-master | undistort_lut.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/undistort_lut.m | 766 | utf_8 | 99de3809facb4896db240c98366bfc67 | %[lut_x,lut_y]=undistort_lut(image_size,K,kc)
% Creates a look up table to go from pixel coordinates to normalized world
% coordinates.
%
% image_size [1x2] [height,width]
% K [3x3] intrinsics matrix
% kc [1x5] distortion coefficients
% lut_x [height x width]
% lut_y [height x width]
% Xn = [lut_x(v,u) lut_y(v,u)... |
github | basson86/3D_IR_Thermal_Mapping-master | estimate_initial_dc.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/estimate_initial_dc.m | 957 | utf_8 | 5da03134dfd228d6cd170a20d8a7b40c | % Kinect calibration toolbox by DHC
function dc=estimate_initial_dc(path,dfiles,depth_corner_p,depth_corner_x,depth_plane_mask,R0,t0)
width = 640;
height = 480;
%Images with valid plane corners
valid = cellfun(@(x) ~isempty(x),depth_corner_p);
valid_idx = find(valid);
dcount = sum(valid);
%Depth parameters
A = zeros... |
github | basson86/3D_IR_Thermal_Mapping-master | distort.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/distort.m | 634 | utf_8 | 198bc35dc4a9a46a637482d7f3de91b5 | %Xd = distort(Xn,kc)
% Distorts points according to the Heikkila's distortion model (same used
% by Bouguet's toolbox).
%
% Xn [2xP] normalized points (already divided by Z component)
% kc [1x5] distortion coefficients
% Xd [2xP] distorted points
%
% Kinect calibration toolbox by DHC
function Xd = distort(Xn,kc)
if(... |
github | basson86/3D_IR_Thermal_Mapping-master | visualize_disparity.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/visualize_disparity.m | 455 | utf_8 | 15660759fb3a0042463cb1354a23fdd1 | %im_rgb=visualize_disparity(im)
% Creates a visualization rgb image from a disparity image
%
% Kinect calibration toolbox by DHC
function im_rgb=visualize_disparity(im)
if(size(im,3) == 1)
im_rgb = mat2rgb(im,jet(256));
s = [1 2 1; 0 0 0; -1 -2 -1];
dx = imfilter(im,s,'replicate','same');
dy = imfilter(im,s',... |
github | basson86/3D_IR_Thermal_Mapping-master | rgb_calib_cost.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/rgb_calib_cost.m | 575 | utf_8 | 9529bf1759516f9404144f95eefb458c | %cost=rgb_calib_cost(raw,params0,rgb_grid_p,rgb_grid_x,use_fixed_intrinsic)
% Cost function for rgb_calib(). Reprojects corners onto image and compares
% pixel positions.
%
% Kinect calibration toolbox by DHC
function cost=rgb_calib_cost(raw,params0,rgb_grid_p,rgb_grid_x,use_fixed_intrinsic)
params = rgb_calib_r2p(raw... |
github | basson86/3D_IR_Thermal_Mapping-master | extrinsic2plane.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/extrinsic2plane.m | 236 | utf_8 | 890adf5f126e5e8dba9257e18109d667 | %[N,d]=extrinsic2plane(R,t)
% Extracts calibration plane parameters (normal and distance from origin)
% from the extrinsics.
%
% Kinect calibration toolbox by DHC
function [N,d]=extrinsic2plane(R,t)
N = R(:,3);
d = dot(R(:,3),t);
|
github | basson86/3D_IR_Thermal_Mapping-master | calibrate_kinect_cost_raw.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_cost_raw.m | 639 | utf_8 | 00cd6a72d54a31497bfc3fef74319944 | % cost=calibrate_kinect_cost(raw_params,options,rgb_grid_p,rgb_grid_x,depth_plane_points,depth_plane_disparity,params0)
% Cost function used by calibrate_kinect.
%
% Kinect calibration toolbox by DHC
function cost=calibrate_kinect_cost_raw(raw_params,options,rgb_grid_p,rgb_grid_x,depth_plane_points,depth_plane_disparit... |
github | basson86/3D_IR_Thermal_Mapping-master | parse_files.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/parse_files.m | 1,266 | utf_8 | ab00de9c31e22ef2dd9677151227ed40 | %[rgb_files,depth_files]=parse_files(rgb_exp, depth_exp)
% Reads the files in the current directory and builds rgb and depth image
% pairs.
%
% Kinect calibration toolbox by DHC
function [rgb_files,depth_files]=parse_files(rgb_exp, depth_exp)
%Scan directory
rgb_list = dir(rgb_exp);
depth_list = dir(depth_exp);
%Extr... |
github | basson86/3D_IR_Thermal_Mapping-master | do_validate.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_validate.m | 3,628 | utf_8 | 6b2cedd05f9f28879bb71bc038b169c5 | %do_validate()
% UI function.
% Kinect calibration toolbox by DHC
function do_validate(calib)
%Inputs
global dataset_path dfiles
global rgb_grid_p rgb_grid_x
global depth_plane_mask
%Outputs
global is_validation
global final_calib final_calib_error;
%Check previous steps
if(isempty(rgb_grid_p))
do_select_rgb_corner... |
github | basson86/3D_IR_Thermal_Mapping-master | do_load_calib.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_load_calib.m | 1,367 | utf_8 | 0858c212314364f051c7f73aaf9293d1 | %do_load_calib()
% UI function. Loads calibration data from disk.
% Kinect calibration toolbox by DHC
function do_load_calib(path)
global dataset_path rfiles rsize dfiles
global rgb_grid_p rgb_grid_x
global depth_corner_p depth_corner_x
global depth_plane_poly depth_plane_mask
global calib0
global is_validation
global... |
github | basson86/3D_IR_Thermal_Mapping-master | rgb_calib_p2r.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/rgb_calib_p2r.m | 724 | utf_8 | 39864f875eee89acd69fd3b0dd6ceed6 | %raw=rgb_calib_p2r(params,use_fixed_intrinsic)
% Used by rgb_calib()
% Kinect calibration toolbox by DHC
function raw=rgb_calib_p2r(params,use_fixed_intrinsic)
raw = [];
base = 1;
if(~use_fixed_intrinsic)
%Internal matrix
raw(base) = params.K(1,1);
raw(base+1) = params.K(2,2);
raw(base+2) = params.K(1,3);
r... |
github | basson86/3D_IR_Thermal_Mapping-master | depth_plane_error.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/depth_plane_error.m | 788 | utf_8 | 19f9db145c718a88b1c3873d8f12af29 | %res=depth_plane_error(depth_calib,depth_plane_points,depth_plane_disparity)
% Reprojects the depth_plane_points to color camera coordinates and
% calculates the distance to the calibration plane (Rext,text).
%
% Kinect calibration toolbox by DHC
function res=depth_plane_error(depth_calib,depth_plane_points,depth_plan... |
github | basson86/3D_IR_Thermal_Mapping-master | fit_plane.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/fit_plane.m | 231 | utf_8 | 184748898511af67f454de397a431f30 | %[N,d]=fit_plane(X)
% Finds the best fit plane for a set of points using PCA.
% Kinect calibration toolbox by DHC
function [N,d]=fit_plane(X)
center = mean(X,2);
vecs = princomp(X');
N = vecs(:,3);
d = dot(N,center);
end |
github | basson86/3D_IR_Thermal_Mapping-master | extrinsics_from_homography.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/extrinsics_from_homography.m | 672 | utf_8 | 8fdde9b72234e892ed4cb266137c3b3e | %Computes extrinsic parameters using a homography and the intrinsic params
%Implemented directly from Zhang's '99 paper
% "Flexible Camera Calibration By Viewing a Plane From Unknown
% Orientations"
%
% H is a 3x3 homography
% K is the [3x3] intrinsics matrix
% R is a 3x3 rotation
% t is a 3x1 translation
%
% Kinect ca... |
github | basson86/3D_IR_Thermal_Mapping-master | find_nearest.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/find_nearest.m | 909 | utf_8 | 61aabd5ad23c5ba394100f40a4e2ca02 | %Function from Bouguet's camera calibration toolbox.
function [value,x,y]=find_nearest(im,mask,x0,y0)
if(mask(y0,x0))
value = im(y0,x0);
x=x0;
y=y0;
return;
end
width = size(im,2);
height = size(im,1);
for i=1:100
for xi=x0-i:x0+i
if(xi<1 || xi>width)
continue;
end
yi = y0-i;
if(yi>=1... |
github | basson86/3D_IR_Thermal_Mapping-master | compute_collineation.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/compute_collineation.m | 1,267 | utf_8 | 9c30c0c213e93e6b486941a973457f17 | %Function from Bouguet's camera calibration toolbox.
function [H,Hnorm,inv_Hnorm] = compute_collineation (a00, a10, a11, a01);
% new formalism using homographies
a00 = a00 / a00(3);
a10 = a10 / a10(3);
a11 = a11 / a11(3);
a01 = a01 / a01(3);
% Prenormalization of point coordinates (very important):
% (Affine normal... |
github | basson86/3D_IR_Thermal_Mapping-master | calibrate_kinect_cost.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/calibrate_kinect_cost.m | 1,100 | utf_8 | 7e8eccbcf66896e90e2bd05164065dc9 | % cost=calibrate_kinect_cost(raw_params,options,rgb_grid_p,rgb_grid_x,depth_plane_points,depth_plane_disparity,params0)
% Cost function used by calibrate_kinect.
%
% Kinect calibration toolbox by DHC
function [color_cost,depth_cost]=calibrate_kinect_cost(params,options,rgb_grid_p,rgb_grid_x,depth_plane_points,depth_pla... |
github | basson86/3D_IR_Thermal_Mapping-master | select_rgb_corners_im.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/select_rgb_corners_im.m | 686 | utf_8 | a9cb3601f8c2166da9477c5564887f51 | %[p,x,win_dx]=select_rgb_corners_im(im,dx,win_dx)
% Prompts the user to select grid corners on an image.
%
% Kinect calibration toolbox by DHC
function [p,x,win_dx]=select_rgb_corners_im(im,dx,win_dx)
im = mean(double(im),3);
fc = [530 530];
cc = [320 240];
done = false;
while(~done)
hold off;
[... |
github | basson86/3D_IR_Thermal_Mapping-master | homography_from_corners.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/homography_from_corners.m | 1,028 | utf_8 | 0e1e0a9a974329d19764cd06b73a345b | %H=homography_from_corners(p,x)
% Builds a homography from two corresponding point lists.
%
% p [2xP]
% x [2xP]
% H [3x3] p=H*x (up to scale)
%
% Kinect calibration toolbox by DHC
function H=homography_from_corners(p,x)
if(size(p,1) > 2)
p = p(1:2,:) ./ repmat(p(3,:),2,1);
end
if(size(x,1) > 2)
x = x(1:2,:);
end
... |
github | basson86/3D_IR_Thermal_Mapping-master | project_points_k.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/project_points_k.m | 905 | utf_8 | 8f1878bae5b871552d85e73bde4283c4 | %p=project_points_k(X,K,kc,R,t)
% Projects a series of points onto the image plane
%
% X [3xP] points in world coordinate frame
% K [3x3] intrinsics matrix
% kc [1x5] distortion coefficients
% R [3x3] world to camera rotation
% t [3x1] world to camera translation
% p [2xP] points in pixel coordinates
%
% Kinect calibra... |
github | basson86/3D_IR_Thermal_Mapping-master | cornerfinder.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/cornerfinder.m | 5,306 | utf_8 | 45ad124203a2014df239230c7e51c5af | %Function from Bouguet's camera calibration toolbox.
function [xc,good,bad,type] = cornerfinder(xt,I,wintx,winty,wx2,wy2);
%[xc] = cornerfinder(xt,I);
%
%Finds the sub-pixel corners on the image I with initial guess xt
%xt and xc are 2xN matrices. The first component is the x coordinate
%(horizontal) and the second co... |
github | basson86/3D_IR_Thermal_Mapping-master | do_select_planes.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/do_select_planes.m | 1,768 | utf_8 | f63f04235ebd3a9ee679c28d9e8f0914 | %do_select_planes()
% UI function.
% Kinect calibration toolbox by DHC
function do_select_planes()
%Input
global dataset_path dfiles
%Output
global depth_plane_poly depth_plane_mask
%Check previous steps
if(isempty(dfiles))
do_select_images();
end
width = 640;
height = 480;
icount = length(dfiles);
fprintf('-----... |
github | basson86/3D_IR_Thermal_Mapping-master | select_plane_polygon.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/select_plane_polygon.m | 1,390 | utf_8 | 06e12c01ae5c668949fe0f1524456157 | %polygon=select_plane_polygon(imd)
% UI function. Asks the user to select the polygon enclosing the
% calibration plane in the depth image.
%
% Kinect calibration toolbox by DHC
function polygon=select_plane_polygon(imd)
display('Select corners of polygon enclosing plane points');
display('[left=add corner,ESC=remove ... |
github | basson86/3D_IR_Thermal_Mapping-master | rgb_calib_r2p.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/rgb_calib_r2p.m | 721 | utf_8 | 7053567bcc82ff16fa7f09869e381100 | %params=rgb_calib_r2p(raw,params0,use_fixed_intrinsic)
% Used by rgb_calib()
% Kinect calibration toolbox by DHC
function params=rgb_calib_r2p(raw,params0,use_fixed_intrinsic)
params = params0;
base = 1;
if(~use_fixed_intrinsic)
%Internal matrix
params.K = [raw(base) 0 raw(base+2);
0 raw(base+1) raw(base+3);
... |
github | basson86/3D_IR_Thermal_Mapping-master | draw_axes.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/draw_axes.m | 1,316 | utf_8 | e867d39e4f7675f8c1eb3a9b1bf0d8df | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function taken from the OCamCalib toolbox.
% Modified by Daniel Herrera C.
% - Changed plot(y,x) to plot(x,y)
function draw_axes(corners,corner_count_x)
xo_X = corners(1,1:corner_count_x)+1;
yo_X = corners(2,1:corner_count_x)+1;
xo_Y = corners(1,1:corner_count_x:end)+1;
yo_Y =... |
github | basson86/3D_IR_Thermal_Mapping-master | save_calib_yml.m | .m | 3D_IR_Thermal_Mapping-master/ReconstructMe/kinect_calibration_with_data_2_1/toolbox/save_calib_yml.m | 1,797 | utf_8 | 05aff16fa3eff951a0a325a47fe0caea | %save_calib_yml Saves the calibration in YAML format so that it can be loaded from C++.
% save_calib_yml(filename,calib,rsize)
%
% Kinect calibration toolbox by DHC
function save_calib_yml(filename,calib,rsize)
%It should look like this:
% %YAML:1.0
% R: !!opencv-matrix
% rows: 3
% cols: 3
% dt: f
% data... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.