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!

