It is easily seen that the eff ect of the affi ne transformation A · X + B is exactly equivalent
to extending the vector X into the vector X´ and simply left -multiplying X´ by T.
Affi ne transformations can be visualized as follows. Any parallelogram ABCD in a
plane can be mapped to any other parallelogram A'B'C'D' by some affi ne transformation.
If the areas of these parallelograms are nonzero, then the implied affi ne transformation
is defi ned uniquely by (three vertices of) the two parallelograms. If you like, you
can think of an affi ne transformation as drawing your image into a big rubber sheet and
then deforming the sheet by pushing or pulling* on the corners to make diff erent kinds
of parallelograms.
When we have multiple images that we know to be slightly diff erent views of the same
object, we might want to compute the actual transforms that relate the diff erent views.
In this case, affi ne transformations are oft en used to model the views because, having
fewer parameters, they are easier to solve for. Th e downside is that true perspective
distortions can only be modeled by a homography,† so affi ne transforms yield a representation
that cannot accommodate all possible relationships between the views. On the
other hand, for small changes in viewpoint the resulting distortion is affi ne, so in some
circumstances an affi ne transformation may be suffi cient.
Affi ne transforms can convert rectangles to parallelograms. Th ey can squash the shape
but must keep the sides parallel; they can rotate it and/or scale it. Perspective transformations
off er more fl exibility; a perspective transform can turn a rectangle into a trapezoid.
Of course, since parallelograms are also trapezoids, affi ne transformations are a
subset of perspective transformations. Figure 6-13 shows examples of various affi ne and
perspective transformations.
Affine Transform
Th ere are two situations that arise when working with affi ne transformations. In the fi rst
case, we have an image (or a region of interest) we’d like to transform; in the second case,
we have a list of points for which we’d like to compute the result of a transformation.
Dense affine transformations
In the fi rst case, the obvious input and output formats are images, and the implicit
requirement is that the warping assumes the pixels are a dense representation of the
มันสามารถเห็นได้ว่าเอฟฟีเน่ ect ของการเปลี่ยนแปลงด้วย X B ตรงเทียบเท่า
เพื่อขยายเวกเตอร์เป็นเวกเตอร์ X และ X ใหม่เหลือเพียง - คูณ X ใหม่โดย T .
อัฟ NE แปลงสามารถมองเห็นดังนี้ รูปสี่เหลี่ยมด้านขนาน ABCD ใน
เครื่องบินสามารถจับคู่กับใด ๆอื่น ๆ a'b'c รูปสี่เหลี่ยมด้านขนาน ' โดยฟีเน่แปลง .
ถ้าพื้นที่ของสี่เหลี่ยมด้านขนานเหล่านี้เป็น 0 ,แล้วฟีเน่ ( แปลงเป็นเดฟีเน็ดเอกลักษณ์โดย
( สามจุด ) สองสี่เหลี่ยมด้านขนาน . ถ้าคุณชอบ คุณสามารถคิดของฟีเน่
แปลงร่างการวาดภาพของคุณให้เป็นยางแผ่นใหญ่ และแผ่น
แล้ว deforming โดยผลักดันหรือดึง * ที่มุมเพื่อให้แตกต่าง erent ชนิด
ของสี่เหลี่ยมด้านขนาน .เมื่อเราได้ภาพหลาย ๆ ที่เรารู้จักจะเล็กน้อย Diff erent มุมมองของวัตถุเดียวกัน
, เราอาจต้องการคำนวณจริงแปลงที่เกี่ยวข้องกับ Diff erent มุมมอง
ในกรณีนี้ ฟีเน่แปลงบ่อยๆและใช้รูปแบบมุมมองเพราะมีพารามิเตอร์
น้อยลง , พวกเขาจะง่ายต่อการแก้ไขสำหรับ . ข้อเสีย TH E คือการบิดเบือนมุมมอง
จริงเท่านั้น โดย homography จําลอง ,ภีษมะดังนั้นฟีเน่แปลงผลผลิตแทน
ที่ไม่สามารถรองรับได้ ความสัมพันธ์ระหว่างความคิดเห็น บนมืออื่น ๆสำหรับการเปลี่ยนแปลงเล็ก ๆ
, ในมุมมองผลบิดเบือนเป็นฟีเน่ ดังนั้นในบางสถานการณ์การเปลี่ยนแปลงฟีเน่
อาจจะ suffi cient . ฟีเน่แปลงสามารถแปลงรูปสี่เหลี่ยมเพื่อสี่เหลี่ยมด้านขนาน . th ey สามารถสควอชรูปร่าง
แต่ต้องเก็บด้านขนานพวกเขาสามารถหมุนและ / หรือชั่งมัน มุมมองเอ้อแปลง
ปิดมากกว่า FL exibility ; การแปลงมุมมองสามารถเปิดรูปสี่เหลี่ยมผืนผ้าเป็นรูปสี่เหลี่ยมคางหมู
แน่นอน เพราะสี่เหลี่ยมด้านขนานยัง trapezoids ฟีเน่ , การแปลงเป็น
ย่อยของมุมมองการแปลง . รูปที่ 6-13 แสดงให้เห็นตัวอย่างของฟีเน่และมุมมองต่างๆ
รวมการแปลงแปลงนี่เป็นครั้งที่สองสถานการณ์ที่เกิดขึ้นเมื่อทำงานกับฟีเน่แปลง . ใน RST fi
กรณี เรามีภาพ ( หรือ 1 ) เราต้องการที่จะเปลี่ยนในกรณีที่สอง
เรามีรายชื่อของจุดที่เราต้องการคำนวณผลการแปลงการแปลง
รวมหนาแน่นใน RST fi สัญญาณชัดเจนกรณี รูปแบบการส่งออกเป็นภาพและแนบเนียน
ความต้องการก็คือการถือว่าเป็นตัวแทนความหนาแน่นของพิกเซล
การแปล กรุณารอสักครู่..
