Taking a single cycle from an image
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 11 de Abr. de 2023
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
el 11 de Abr. de 2023
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
el 11 de Abr. de 2023
Editada: Md. Nazrul Islam Siddique
el 11 de Abr. de 2023
Md. Nazrul Islam Siddique
el 11 de Abr. de 2023
Walter Roberson
el 11 de Abr. de 2023
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
el 11 de Abr. de 2023
Ran Yang
el 11 de Abr. de 2023
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
el 11 de Abr. de 2023
Ran Yang
el 11 de Abr. de 2023
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
el 11 de Abr. de 2023
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
el 11 de Abr. de 2023
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

