How to wrap image along a polygon

3 vues (au cours des 30 derniers jours)
Christian Pritz
Christian Pritz le 29 Sep 2022
Greetings,
I have a an image (200, 1800) that should fit along a segmented line (2,16, several segments) including deforming the image. Is there any MatLab algorithm that can wrap or fit an image to a polygon ( a set of x,y coordinates). Any hint towards a solution is greatly appreciated.
best regards
Christian

Réponse acceptée

Image Analyst
Image Analyst le 1 Oct 2022
  1 commentaire
Christian Pritz
Christian Pritz le 2 Oct 2022
That was very helpful thanks.

Connectez-vous pour commenter.

Plus de réponses (1)

KSSV
KSSV le 29 Sep 2022
REad about warp
  1 commentaire
Christian Pritz
Christian Pritz le 1 Oct 2022
Déplacé(e) : DGM le 1 Oct 2022
Thanks! Read about wrap. Wrap might have worked. However, I chose to convert the image using sparse() into x,y points then partitioned the points along the x dimension into segments accroding to the segments in the polygon. Next, I rotated the points according to the angles in the polygon. That sufficed for my purposes.

Connectez-vous pour commenter.

Communautés

Plus de réponses dans  ThingSpeak Community

Catégories

En savoir plus sur Biomedical Imaging dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by