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..
恭歓(Yasuyoshi) 増田(Masuda)
2021년 10월 14일
편집: 恭歓(Yasuyoshi) 増田(Masuda)
2021년 10월 14일
참고 항목
카테고리
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!