Is it possible to change color for the plot function in opticalFlow class?
5 visualizaciones (últimos 30 días)
hekimgil el 31 de Mayo de 2016
The plot function in opticalFlow class ( see here ) has three name-value pair arguments. I assumed other regular plot arguments would work too but obviously they don't. I tried to use 'color' unsuccessfully.
I plan to superimpose the plots on images and the current blue color is hardly visible... So my question is: is there any way to change the color of this plot?
Anand el 2 de Jun. de 2016
Unfortunately, this can't be done directly. You need to find a handle to the underlying quiver plot and modify it. Here's some code to help you:
% Compute and plot optic flow
opflow = opticalFlow(randn(100,100),randn(100,100));
% Find quiver handle
q = findobj(gca,'type','Quiver');
% Change color to red
q.Color = 'r';
Más respuestas (1)
Oskar Wilhelmsson el 24 de Mzo. de 2018
I ran into a similar problem. Using "clf" in the beginning of the video loop will make sure the color is always the same, which is what I think you actually want.