Skip to content

Doc: INTER_LINEAR_EXACT unsupported in remap#18582

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
weltonrodrigo:remap_inter_doc
Oct 14, 2020
Merged

Doc: INTER_LINEAR_EXACT unsupported in remap#18582
opencv-pushbot merged 1 commit intoopencv:3.4from
weltonrodrigo:remap_inter_doc

Conversation

@weltonrodrigo
Copy link
Copy Markdown
Contributor

@weltonrodrigo weltonrodrigo commented Oct 13, 2020

Update documentation to reflect INTER_LINEAR_EXACT being
unsupported in remap

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Update documentation to reflect INTER_LINEAR_EXACT being
unsupported in remap
@weltonrodrigo
Copy link
Copy Markdown
Contributor Author

Relevante code section in 3.4 is:

if( interpolation == INTER_NEAREST )
{
nnfunc = nn_tab[depth];
CV_Assert( nnfunc != 0 );
}
else
{
if( interpolation == INTER_LINEAR )
ifunc = linear_tab[depth];
else if( interpolation == INTER_CUBIC ){
ifunc = cubic_tab[depth];
CV_Assert( _src.channels() <= 4 );
}
else if( interpolation == INTER_LANCZOS4 ){
ifunc = lanczos4_tab[depth];
CV_Assert( _src.channels() <= 4 );
}
else
CV_Error( CV_StsBadArg, "Unknown interpolation method" );
CV_Assert( ifunc != 0 );
ctab = initInterTab2D( interpolation, fixpt );
}

@opencv-pushbot opencv-pushbot merged commit 8c4d415 into opencv:3.4 Oct 14, 2020
@alalek alalek mentioned this pull request Oct 21, 2020
@alalek alalek mentioned this pull request Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants