bug:The built-in functions transformImage and imwarp have invalid projection areas in the image.

1 Ansicht (letzte 30 Tage)
When I use the matlab built-in function transformImage or imwarp, when the specified parameter 'outView' of birdsEyeView function is large, there is an invalid area that should not have an image, it should be set to black. how do i remove it instead of reduced visual range?
focalLength = [309.4362 344.2161];
principalPoint = [318.9034 257.5352];
imageSize = [480 640];
camIntrinsics = cameraIntrinsics(focalLength,principalPoint,imageSize);
height = 2.1798;
pitch = 14;
sensor = monoCamera(camIntrinsics,height,'Pitch',pitch);
distAhead = 30;
spaceToOneSide = 6;
bottomOffset = -20;
outView = [bottomOffset,distAhead,-spaceToOneSide,spaceToOneSide];
outImageSize = [NaN,250];
birdsEye = birdsEyeView(sensor,outView,outImageSize);
I = imread('road.png');
figure
imshow(I)
title('Original Image')
BEV = transformImage(birdsEye,I);
figure
imshow(BEV)
title('Bird''s-Eye-View Image: vehicleToImage')

Antworten (0)

Kategorien

Mehr zu Filter Banks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by