bug:The built-in functions transformImage and imwarp have invalid projection areas in the image.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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')
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Filter Banks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!