I am looking for the way to display the video on graph!
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
恭歓(Yasuyoshi) 増田(Masuda)
am 13 Okt. 2021
Bearbeitet: 恭歓(Yasuyoshi) 増田(Masuda)
am 14 Okt. 2021
Hi,I'm Japanese highschool student, and I am reserching the way to change any videoes on youtube into graph.
Before i startede this study, I watched this video on youtube.
https://www.youtube.com/watch?v=BQvBq3K50u8 (here is the github link of Desmos Bezir Renderer. https://github.com/kevinjycui/DesmosBezierRenderer )
So, in this video, using python and html to change video into graph, however, I want to do it using only MATLAB.
Inthis video, fitst thing that I have to do is that dounload the youtube video and change them images, then, detect the edge. I could do it on MATLAB.
RGB = imread('BAd.jpg'); %画像のファイル名を入れる,file name
imshow(RGB)
I = rgb2gray(RGB); %グレースケールに画像を返還変換 change the image into gray scale
figure
imshow(I) %グレースケールの画像を表示 display the image of above one
[~, threshold] = edge(I, 'sobel');
fudgeFactor = .3; %画像の読み込む深さ depth of read the image
BWs = edge(I,'sobel', threshold * fudgeFactor);
figure, imshow(BWs), title('edge-detected-RIOREUSU'); %適当に名前を付けていいよ
However, I can not change touse images into graph. How do I do that on MATLAB? Please teach me how to do that.
0 Kommentare
Antworten (1)
Aoi Midori
am 13 Okt. 2021
I am not 100% sure what you meant by graph, but I could get a similar result with the code below. The attached file is the output.
I = imread('cell.tif'); % Modified the filename
[~, threshold] = edge(I, 'sobel'); % Original code
fudgeFactor = .3; % Original code
BWs = edge(I,'sobel', threshold * fudgeFactor); % Original code
figure, imshow(BWs), title('edge-detected-RIOREUSU'); % Original code
GR = double(~BWs); % Added line
imagesc(GR) % Added line
colormap Gray % Added line
3 Kommentare
Aoi Midori
am 14 Okt. 2021
What I did is:
Calculate "NOT" for BWs (just converting 0 to 1 as well as 1 to 0)
GR = double(~BWs); % Added line
Visualize GR
imagesc(GR) % Added line
Change the colormap, otherwise the image would be blue and yellow as default
colormap Gray % Added line
For the second question, MATLAB can convert the figure into pdf and/or eps vector data. The example code is:
exportgraphics(gca,'temp.pdf','ContentType','vector')
That's all what I know and so far I have no idea how to obtain formulas from the image.. I hope this helps at least..
恭歓(Yasuyoshi) 増田(Masuda)
am 14 Okt. 2021
Bearbeitet: 恭歓(Yasuyoshi) 増田(Masuda)
am 14 Okt. 2021
Siehe auch
Kategorien
Mehr zu Point Cloud Processing 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!