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

2 views (last 30 days)
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')

Answers (0)

Categories

Find more on Filter Banks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!