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 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

