How to straighten curved line using imwarp function.

I do not know how to use this function, though this function is critical in future work I will be doing thus I need to know how to use it properly. I am simply trying to wrap my head around it. I am a beginner to matlab. In essence I am trying to geometrically move a certain set of points to another location, in practise they will have to be vertically aligned.

12 commentaires

How it should be straightened?
11Untitled.png
The first one you posted if you'd be so kind.
What if just find position of this pixel and replace all others?
22Untitled.png
Well in the work I am trying to do the pixels contain different information in terms of light intensity. So I can't just copy the pixel and translate it up, the actual information matters so it needs to be shifted.
So entire row should be shifted or what?
Untitled.png

Yes the entire curve should be shifted except for the very bottom point and the line should be vertical.

but what about other pixels? Should they be shifted too?
12.png
Ideally yes.
Can you attach sample image? How to identificate a curve?
0h just on that GIF image I posted already. I just want to know how to use the imwarp function.
Are you sure imwarp can handle it?
Yes, imwarp does geometric transformations

Connectez-vous pour commenter.

Réponses (0)

Produits

Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by