Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
8785ac1d
Commit
8785ac1d
authored
May 24, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified spec
parent
844b3552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
interpolation_abstract.h
dlib/image_transforms/interpolation_abstract.h
+8
-9
No files found.
dlib/image_transforms/interpolation_abstract.h
View file @
8785ac1d
...
...
@@ -1466,15 +1466,14 @@ namespace dlib
- pts.size() == 4
ensures
- The 4 points in pts define a convex quadrilateral and this function extracts
that part of the i
mage and stores it into #out. Therefore, each corner of
the quadrilateral is associated to a corner of #out and bilinear
that part of the i
nput image img and stores it into #out. Therefore, each
corner of
the quadrilateral is associated to a corner of #out and bilinear
interpolation and a projective mapping is used to transform the pixels in the
quadrilateral in img into #out. To determine which corners of the
quadrilateral map to which corners of #out we fit the tightest possible
rectangle to the quadrilateral and map its vertices to their nearest
rectangle corners. These corners are then trivially mapped to #out (i.e.
upper left corner to upper left corner, upper right corner to upper right
corner, etc.).
quadrilateral into #out. To determine which corners of the quadrilateral map
to which corners of #out we fit the tightest possible rectangle to the
quadrilateral and map its vertices to their nearest rectangle corners. These
corners are then trivially mapped to #out (i.e. upper left corner to upper
left corner, upper right corner to upper right corner, etc.).
- #out.nr() == out.nr() && #out.nc() == out.nc().
I.e. out should already be sized to whatever size you want it to be.
!*/
...
...
@@ -1496,7 +1495,7 @@ namespace dlib
ensures
- This routine simply finds the 4 intersecting points of the given lines and
uses them in a call to the version of extract_image_4points() defined above.
i.e. extract_image_
chip
s(img, out, intersections_between_lines)
i.e. extract_image_
4point
s(img, out, intersections_between_lines)
- Since 4 lines might intersect at more than 4 locations, we select the
intersections that give a quadrilateral with opposing sides that are as
parallel as possible.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment