Stretch, Shrink, Warp, and Rotate
In this section we turn to geometric manipulations of images.* Such manipulations include
stretching in various ways, which includes both uniform and nonuniform resizing
(the latter is known as warping). Th ere are many reasons to perform these operations:
for example, warping and rotating an image so that it can be superimposed on a wall in
an existing scene, or artifi cially enlarging a set of training images used for object recognition.†
Th e functions that can stretch, shrink, warp, and/or rotate an image are called
geometric transforms (for an early exposition, see [Semple79]). For planar areas, there
are two fl avors of geometric transforms: transforms that use a 2-by-3 matrix, which are
called affi ne transforms; and transforms based on a 3-by-3 matrix, which are called perspective
transforms or homographies. You can think of the latter transformation as a
method for computing the way in which a plane in three dimensions is perceived by a
particular observer, who might not be looking straight on at that plane.
An affi ne transformation is any transformation that can be expressed in the form of a
matrix multiplication followed by a vector addition. In OpenCV the standard style of
representing such a transformation is as a 2-by-3 matrix. We defi ne:
ยืดหดได้ , หมุน , บิด ,
ในส่วนนี้เราก็หันไปทางเรขาคณิต manipulations ภาพ * เช่น manipulations รวม
ยืดในรูปแบบต่างๆ ซึ่งมีทั้งเครื่องแบบและสม่ำเสมอปรับขนาด
( หลังเรียกว่าการแปรปรวน ) th ก่อนมีหลายเหตุผลที่จะดำเนินการเหล่านี้ :
ตัวอย่างเช่น งอ และหมุนภาพที่สามารถซ้อนทับบนผนังใน
ฉากที่มีอยู่หรือ artifi cially ขยายชุดของภาพที่ใช้สำหรับการฝึกการรับรู้วัตถุ ภีษมะ
th e ฟังก์ชันที่สามารถยืดหดได้ , , บิด , และ / หรือหมุนภาพเรียกว่า
เรขาคณิตแปลง ( สำหรับการแสดงออกก่อนเห็น [ semple79 ] ) สำหรับพื้นที่ระนาบ มี
2 FL avors ของเรขาคณิตแปลง : แปลงที่ใช้เมทริกซ์ 2-by-3 ซึ่งเรียกว่าฟีเน่แปลง
;และแปลงข้อมูลจากเมทริกซ์ 3-by-3 ซึ่งเรียกว่ามุมมอง
แปลงหรือ homographies . คุณสามารถคิดของการเปลี่ยนแปลงหลังเป็น
วิธีคำนวณวิธีการที่เครื่องบินใน 3 มิติ คือการรับรู้โดย
สังเกตโดยเฉพาะ ที่อาจจะมองตรงไปที่เครื่องบินนั้น เป็นฟีเน่
แปลงแปลงใด ๆที่สามารถแสดงในรูปแบบของ
การคูณเมทริกซ์ตามเวกเตอร์และ ในแบบมาตรฐานของ
เป็นการแสดงการเปลี่ยนแปลงดังกล่าวเป็นเมทริกซ์ 2-by-3 . เราเดฟี ne :
การแปล กรุณารอสักครู่..
