Taking a single cycle from an image
古いコメントを表示
I have a current waveform image of dimension of 750 * 750. In the current waveform, I have two cycles; before the fault and during the fault. I am only interested in getting the during fault cycle (spike in the current signal). I do not want the figure in gray scale as I need RGB figure. How can I get this cycle only from the images and save in a folder? 

11 件のコメント
Walter Roberson
2023 年 4 月 11 日
Where should the cycles be considered to start? At the minima? At the zero crossings?
The zero crossing for Phase A before the fault is rouhgly index 125; the zero crossing for Phase B before the fault is roughly 100; the zero crossing for Phase C before the fault is roughly 75. Should each line be cropped separately, or should you crop starting from the first of those (75), or from the last of those (125) ?
Image Analyst
2023 年 4 月 11 日
What happened to your data? Did you plot it or someone else? Why is your starting point the image instead of the curve values? What do you want as output? Y values in a vector, or a cropped image?
Md. Nazrul Islam Siddique
2023 年 4 月 11 日
編集済み: Md. Nazrul Islam Siddique
2023 年 4 月 11 日
Md. Nazrul Islam Siddique
2023 年 4 月 11 日
Walter Roberson
2023 年 4 月 11 日
Why would the endpoint be the current end of the image? After the fault, the next zero crossings are roughly 170, 190, 210, so shouldn't the endpoint be 210 ?
Md. Nazrul Islam Siddique
2023 年 4 月 11 日
Ran Yang
2023 年 4 月 11 日
Sorry for jumping in, but if all OP wants is a cropped figure, can't he just take his current figure and set xlim([start end]) based on whatever he thinks is necessary?
Md. Nazrul Islam Siddique
2023 年 4 月 11 日
Ran Yang
2023 年 4 月 11 日
Then going back to what Image Analyst said, do you have the data or not? If you only have images and not the actual data array(s), I don't think anyone can help you.
If you have the data, you can either manually determine the limits for each figure or write a script to do so, and then replot everything.
Walter Roberson
2023 年 4 月 11 日
If what you have is images rather than figures or data, then I suggest you start by searching the File Exchange for tag:digitize and try out a few of the programs that are created specifically to try to read out coordinates from images.
DGM
2023 年 4 月 11 日
Do the waveform positions and axes extents vary between images? If not, it should be fairly simple. If they do, it'll be a huge fragile mess, given that this is a difficult JPG.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

