Assemble the generated graph
3 ビュー (過去 30 日間)
古いコメントを表示
Greetings community, I would like to know if it is possible to represent this graph but without the jumps that can be seen in it. The ordinate axis consists of the Orientation of an object that rotates once and the abscissa axis consists of the time in frames. The function used to generate this graph is through regionprops (Orientation) My idea and interest is to be able to see the graph without those jumps and that it remains continuous (A single function represented) Thank you very much in advance and I enclose part of the code for generate it
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1043835/image.png)
plot(Mtaco(:,1), Mtaco(:,5),'o'), grid on, title('Orientacion');
Mtaco(:,5) Represents the matrix generated by a sequence of photos. The orientation corresponds to the Centroid (regionprops function) which keeps the orientation of the object with respect to the passage of time
Mtaco = [Mtaco; ii s(ss).Area s(ss).Centroid s(ss).Orientation];
Mtaco It is a matrix in which data of time, area, centroid and orientation are stored.
I already tried to do it with the unwrap function but I would like to see another way to bind this function
Thank you very much for your attention and for your help.
0 件のコメント
回答 (1 件)
M.B
2022 年 6 月 24 日
"unwrap" function is designed to do that.
If you are trying to code a similar function, then you can look at the rate of change. If the value exceeds a certain threshold at T=t0, you +/-180deg to the rest of the data (from T=t0 to the end).
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!