I am looking for the way to display the video on graph!
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Aoi Midori
2021-10-13
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 个评论
Aoi Midori
2021-10-14
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..
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!