Increase contrast in geoscatter

3 visualizaciones (últimos 30 días)
Andres Salomon Fielbaum Schnitzler
Andres Salomon Fielbaum Schnitzler el 19 de Nov. de 2021
Hi, all.
I am using geoscatter to create a video, by concatenating many frames one after the other. When I create just a single image (the image at the bottom below), the background looks really nice, and the streets can be easily identified. However, when I run the video, the contrast of the background becomes much lighter, and the streets are hardly noticeable (the top image below). Do you know how can I fix this? I am not sure if it relates with how do I create the images, or how do I create the video. I am attaching the relevant code below. Thanks in advance
geoscatter(StopsToPlot(:,1),StopsToPlot(:,2),0.01,'y','s','filled')
hold on
for k=1:numel(Border)-1
O=NodesExtended(Border(k),:);
D=NodesExtended(Border(k+1),:);
geoplot([O(1),D(1)],[O(2),D(2)],'b');
end
geoscatter(StopsToPlot(:,1),StopsToPlot(:,2),0.01,'y','s','filled')
hold on
geoplot(EdgesToStop(1,1:2),EdgesToStop(1,3:4),'k');
for k=1:numel(Border)-1
O=NodesExtended(Border(k),:);
D=NodesExtended(Border(k+1),:);
geoplot([O(1),D(1)],[O(2),D(2)],'b');
end
geoscatter(BVeh(:,1),BVeh(:,2),50,[0.4940 0.1840 0.5560],'filled','d')
text(-33.4,-70.54,TextClock,'FontSize',20)
hold off
  3 comentarios
Andres Salomon Fielbaum Schnitzler
Andres Salomon Fielbaum Schnitzler el 22 de Nov. de 2021
Thanks!
To generate the video, I am using first:
v = VideoWriter('Test4.avi');
v.FrameRate=30;
open(v);
And then, inside a for cycle:
frame=getframe(gcf);
writeVideo(v,frame);
hold off
Maybe there is something I can change there?
Thanks again
Andres Salomon Fielbaum Schnitzler
Andres Salomon Fielbaum Schnitzler el 22 de Nov. de 2021
Two relevant extra comments:
1) Increasing the quality of the video through v.quality does not change the solution significantly.
2) Using Quicktime instead of VLC to watch the video makes the solution to look much better. It still looks worse than the original image, and I would be very happy if I can enhance the video further, but it does look decent in Quicktime.

Iniciar sesión para comentar.

Respuestas (0)

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by