Extracting data from a text file.
1 回表示 (過去 30 日間)
古いコメントを表示
Please help me with this code. Annotations.text contains the positions for five rectangles. How can I extract the values from text file and use it as position for rectangles.
I=imread('avengers.png');
Data = dlmread('Annotations.txt');
[rows, columns] = size(Data);
imshow(I);
rectangle('Position', 'Curvature',[0,0], 'LineWidth', 2, 'EdgeColor','r');
2 件のコメント
Geoff Hayes
2015 年 1 月 16 日
Saad - can you provide a sample of the data from the Annotations.text file? We can't offer guidance unless you provide some details concerning the content/format of this file.
採用された回答
Image Analyst
2015 年 1 月 16 日
The question of plotting and colors was already answered in http://www.mathworks.com/matlabcentral/answers/170028#answer_164948. To answer your current question "How can I extract the values from text file and use it as position for rectangles?" it would be most helpful if you attached the data file and original image like Geoff asked. Make it easy for us to help you. If it's easy we might write code, otherwise we might just give written "directions."
0 件のコメント
その他の回答 (1 件)
D. Ali
2019 年 4 月 27 日
I have similar question where I need to extarct all MCAP with time they occured on in separat file and plot if possilbe
I attached the file
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!