Warning: The new value for the Matrix property may cause rendering problems.

6 次查看(过去 30 天)
When I plot the camera pose, I get the following warning, this 4*4 flush conversion matrix should be valid, even if I force the type to single type? How can I avoid it?
load data.mat
plotCamera(camCurrPose)
Warning: The new value for the Matrix property may cause rendering problems.
Warning: The new value for the Matrix property may cause rendering problems.
> In vision.graphics/Camera/updateTransform (line 251)
In vision.graphics.Camera (line 231)
In vision.graphics.Camera.plotCameraImpl (line 63)
In plotCamera (line 112)
I suspect that perhaps the matrix is type sensitive and,then modified line 251 of the internal code camera.m
%------------------------------------------------------------------
function updateTransform(this)
S = makehgtform('scale', this.SizeInternal);
T = makehgtform('translate', this.LocationInternal);
T(1:3, 1:3) = this.RotationInternal';
this.Group.Matrix = T * S; % line 251
end
this.Group.Matrix = single(T * S);
However, a warning will still be given.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision Toolbox 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by