Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
70aaa13a
Commit
70aaa13a
authored
Dec 29, 2011
by
Davis King
Browse files
Removed unnecessary requirement on get_block_rect()
parent
462c8c5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
dlib/image_keypoint/hog.h
dlib/image_keypoint/hog.h
+0
-12
dlib/image_keypoint/hog_abstract.h
dlib/image_keypoint/hog_abstract.h
+2
-4
No files found.
dlib/image_keypoint/hog.h
View file @
70aaa13a
...
@@ -145,18 +145,6 @@ namespace dlib
...
@@ -145,18 +145,6 @@ namespace dlib
long
col
long
col
)
const
)
const
{
{
// make sure requires clause is not broken
DLIB_ASSERT
(
0
<=
row
&&
row
<
nr
()
&&
0
<=
col
&&
col
<
nc
(),
"
\t
rectangle hog_image::get_block_rect()"
<<
"
\n\t
invalid row or col argument"
<<
"
\n\t
row: "
<<
row
<<
"
\n\t
col: "
<<
col
<<
"
\n\t
nr(): "
<<
nr
()
<<
"
\n\t
nc(): "
<<
nc
()
<<
"
\n\t
this: "
<<
this
);
row
*=
cell_stride
;
row
*=
cell_stride
;
col
*=
cell_stride
;
col
*=
cell_stride
;
...
...
dlib/image_keypoint/hog_abstract.h
View file @
70aaa13a
...
@@ -219,12 +219,10 @@ namespace dlib
...
@@ -219,12 +219,10 @@ namespace dlib
long
col
long
col
)
const
;
)
const
;
/*!
/*!
requires
- 0 <= row < nr()
- 0 <= col < nc()
ensures
ensures
- returns a rectangle that tells you what part of the original image is associated
- returns a rectangle that tells you what part of the original image is associated
with a particular HOG block.
with a particular HOG block. That is, what part of the input image is associated
with (*this)(row,col).
- The returned rectangle will be cell_size*block_size pixels wide and tall.
- The returned rectangle will be cell_size*block_size pixels wide and tall.
!*/
!*/
...
...
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