Преобразуйте 3-D облако точек
применяет заданное 3-D смежное преобразование, ptCloudOut
= pctransform(ptCloudIn
,tform
)tform
к облаку точек, ptCloudIn
. Преобразование может быть твердым или нетвердым преобразованием.
применяет поле ptCloudOut
= pctransform(ptCloudIn
,D
)D
смещения к облаку точек. Преобразование облака точек с помощью поля define смещения переводы относительно каждой точки в облаке точек.
Считайте облако точек.
ptCloud = pcread('teapot.ply');
Постройте облако точек.
figure pcshow(ptCloud) xlabel('X') ylabel('Y') zlabel('Z')
Создайте объект преобразования с 45 вращениями степени вдоль оси z.
theta = pi/4; rot = [cos(theta) sin(theta) 0; ... -sin(theta) cos(theta) 0; ... 0 0 1]; trans = [0, 0, 0]; tform = rigid3d(rot,trans);
Преобразуйте облако точек.
ptCloudOut = pctransform(ptCloud,tform);
Постройте преобразованное облако точек.
figure pcshow(ptCloudOut) xlabel('X') ylabel('Y') zlabel('Z')
MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (<a href="matlab: opentoline('D:\jobarchive\Bvision\2019_10_24_h12m50s33_job1237278_pass\matl...
MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 52) matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1); Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12) executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName); Error in matlab.internal.liveeditor.executeAndSave (line 20) [javaRichDocument, cleanupObj, executionTime]= LiveEditorUtilities.openAndExecute(fileName); %#ok<ASGLU> Error in publishMainFile (line 40) matlab.internal.liveeditor.executeAndSave(src); Error in examples.previewExample (line 70) publishMainFile(metadata, metadataUrl);] MathWorks::System::IUserException [Error using matlab.ui.internal.componentframework.WebControllerFactory/checkPreconditions (line 45) Invalid superclass name. Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 92) checkPreconditions( obj, component, parentController, nargin ); Error in matlab.internal.editor.FigureManager.requestDrawnow Error in matlab.internal.editor.FigureProxy/createNewWebFigureFromSerializedData Error in matlab.internal.editor.FigureProxy/createWebFigureSnapshot Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager Error in matlab.internal.editor.FigureManager.saveSnapshot Error in matlab.internal.editor.FigureManager.snapshotAllFigures Error in matlab.internal.editor.OutputsManager/postRegionCallback Error in matlab.internal.editor.OutputsManager>@(varargin)obj.postRegionCallback(varargin{:}) Error in matlab.internal.editor.evaluateRegions Error in matlab.internal.editor.EvaluationOutputsService.evalRegions Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (<a href="matlab: opentoline('D:\jobarchive\Bvision\2019_10_24_h12m50s33_job1237278_pass\matl...
Этот пример показывает аффинное преобразование 3-D облака точек. Заданное прямое преобразование может быть твердым или нетвердым преобразованием. Показанные преобразования включают вращение (твердое преобразование) и сдвигающий (нетвердое преобразование) облака точки ввода.
Считайте облако точек в рабочую область.
ptCloud = pcread('teapot.ply');
Вращение 3-D облака точек
Создайте объект смежного преобразования, который задает 45 вращений степени вдоль оси z.
A = [cos(pi/4) sin(pi/4) 0 0; ... -sin(pi/4) cos(pi/4) 0 0; ... 0 0 1 0; ... 0 0 0 1]; tform = affine3d(A);
Преобразуйте облако точек.
ptCloudOut1 = pctransform(ptCloud,tform);
Сдвиг 3-D облака точек
Создайте объект смежного преобразования, который задает сдвиг вдоль оси X.
A = [1 0 0 0; ... 0.75 1 0 0; ... 0.75 0 1 0; ... 0 0 0 1]; tform = affine3d(A);
Преобразуйте облако точек.
ptCloudOut2 = pctransform(ptCloud,tform);
Отобразите исходные и аффинные преобразованные 3-D облака точек
Постройте исходное 3-D облако точек.
figure1 = figure('WindowState','normal'); axes1 = axes('Parent',figure1); pcshow(ptCloud,'Parent',axes1); xlabel('X'); ylabel('Y'); zlabel('Z'); title('3-D Point Cloud','FontSize',14)
% Plot the rotation and shear affine transformed 3-D point clouds. figure2 = figure('WindowState','normal'); axes2 = axes('Parent',figure2); pcshow(ptCloudOut1,'Parent',axes2); xlabel('X'); ylabel('Y'); zlabel('Z'); title({'Rotation of 3-D Point Cloud'},'FontSize',14)
figure3 = figure('WindowState','normal'); axes3 = axes('Parent',figure3); pcshow(ptCloudOut2,'Parent',axes3); xlabel('X'); ylabel('Y'); zlabel('Z'); title({'Shearing of 3-D Point Cloud'},'FontSize',14)
Считайте облако точек в рабочую область.
ptCloud = pcread('teapot.ply');
Создайте поле D
смещения из того же размера как облако точек.
D = zeros(size(ptCloud.Location));
Установите значение поля смещения вдоль оси X для первой половины точек к 7.
pthalf = ptCloud.Count/2; D(1:pthalf,1) = 7;
Извлеките индексы точек в видимой области (ROI) с помощью pointCloud
метод findNeighborsInRadius
. Установите значение поля смещения вдоль x-, y-, и ось z для точек в ROI к 4, 4, и-2, соответственно.
indices = findNeighborsInRadius(ptCloud,[0 0 3.1],1.5); D(indices,1:2) = 4; D(indices,3) = -2;
Преобразуйте облако точек с помощью поля смещения.
ptCloudOut = pctransform(ptCloud,D);
Отобразите исходное и преобразованное облако точек.
figure pcshow(ptCloud) xlabel('X'); ylabel('Y'); zlabel('Z'); title('Original 3-D Point Cloud')
figure pcshow(ptCloudOut) xlabel('X'); ylabel('Y'); zlabel('Z'); title('Transformed 3-D Point Cloud Using Displacement Field')
ptCloudIn
— Облако точекpointCloud
объектОблако точек в виде pointCloud
объект.
tform
— 3-D геометрическое преобразованиеrigid3d
возразите | affine3d
объект3-D геометрическое преобразование в виде rigid3d
возразите или affine3d
объект. Смотрите Задают Матрицу преобразования (Image Processing Toolbox) для получения дополнительной информации о том, как настроить аффинный 3-D tform
входной параметр.
D
— Поле DisplacementПоле Displacement или в виде M-by-3 или в виде M-by-N-by-3 массив. Поле смещения является набором векторов смещения, которые задают величину и направление перевода для каждой точки в облаке точек. Размер поля смещения должен совпасть с размером Location
свойство pointCloud
объект.
Типы данных: single
| double
ptCloudOut
— Преобразованное облако точекpointCloud
объектПреобразованное облако точек, возвращенное как pointCloud
объект. Преобразование применяется к координатам точек и их векторов нормали.
pcdenoise
| pcdownsample
| pcfitplane
| pcmerge
| pcplayer
| pcread
| pcregistericp
| pcshow
| pcwrite
У вас есть модифицированная версия этого примера. Вы хотите открыть этот пример со своими редактированиями?
1. Если смысл перевода понятен, то лучше оставьте как есть и не придирайтесь к словам, синонимам и тому подобному. О вкусах не спорим.
2. Не дополняйте перевод комментариями “от себя”. В исправлении не должно появляться дополнительных смыслов и комментариев, отсутствующих в оригинале. Такие правки не получится интегрировать в алгоритме автоматического перевода.
3. Сохраняйте структуру оригинального текста - например, не разбивайте одно предложение на два.
4. Не имеет смысла однотипное исправление перевода какого-то термина во всех предложениях. Исправляйте только в одном месте. Когда Вашу правку одобрят, это исправление будет алгоритмически распространено и на другие части документации.
5. По иным вопросам, например если надо исправить заблокированное для перевода слово, обратитесь к редакторам через форму технической поддержки.