I am looking for the way to display the video on graph!
3 views (last 30 days)
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
I = rgb2gray(RGB); %グレースケールに画像を返還変換 change the image into gray scale
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.
Aoi Midori on 13 Oct 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