mirror of https://github.com/davisking/dlib.git
Removed unnecessary requirement on get_block_rect()
This commit is contained in:
parent
462c8c5cec
commit
70aaa13a5b
|
@ -145,18 +145,6 @@ namespace dlib
|
|||
long col
|
||||
) 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;
|
||||
col *= cell_stride;
|
||||
|
||||
|
|
|
@ -219,12 +219,10 @@ namespace dlib
|
|||
long col
|
||||
) const;
|
||||
/*!
|
||||
requires
|
||||
- 0 <= row < nr()
|
||||
- 0 <= col < nc()
|
||||
ensures
|
||||
- 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.
|
||||
!*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue