# "Exposure Compensate" is throwing errors C4263/C4263

**URL:** <https://forum.opencv.org/t/exposure-compensate-is-throwing-errors-c4263-c4263/16141>\
**Category:** C++\
**Tags:** stitching, build\
**Created:** [January 13, 2024, 5:58am UTC](https://forum.opencv.org/t/exposure-compensate-is-throwing-errors-c4263-c4263/16141 "2024-01-13T05:58:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasha\_janvier](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sasha_janvier/32/9483_2.png) [@sasha\_janvier](https://forum.opencv.org/u/sasha_janvier)\
**Post date:** [January 13, 2024, 5:58am UTC](https://forum.opencv.org/t/exposure-compensate-is-throwing-errors-c4263-c4263/16141/1 "2024-01-13T05:58:08Z")

</div>

Hey guys! 🙂

I’ve looked everywhere for an answer to this (here, Github, StackOverflow, asked ChatGPT4 extensively, etc.), but to no avail thus far.

I am building a plugin for the 3D software Cinema 4D in Visual Studio 2019. I want the plugin to make use of some of OpenCV’s functions to paste, rotate and scale a bitmap image. Pretty basic stuff.

Upon building my solution in VS, I get the following errors:

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error | C4263 | '`void cv::detail::BlocksCompensator::feed(const std::vector<cv::Point,std::allocator<cv::Point>> &,const std::vector<cv::UMat,std::allocator<cv::UMat>> &,const std::vector<std::pair<cv::UMat,uchar>,std::allocator<std::pair<cv::UMat,uchar>>> &)': member function does not override any base class virtual member function` | plugin\_alpha-v001 | C:\opencv\build\include\opencv2\stitching\detail\exposure\_compensate.hpp | 190 | |

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error | C4264 | '`void cv::detail::ExposureCompensator::feed(const std::vector<cv::Point,std::allocator<cv::Point>> &,const std::vector<cv::UMat,std::allocator<cv::UMat>> &,const std::vector<std::pair<cv::UMat,uchar>,std::allocator<std::pair<cv::UMat,uchar>>> &)': no override available for virtual member function from base 'cv::detail::ExposureCompensator'; function is hidden` | plugin\_alpha-v001 | C:\opencv\build\include\opencv2\stitching\detail\exposure\_compensate.hpp | 202 | |

This is driving me a little nutty, especially because I can’t really make sense of the errors’ documentation : [Compiler Warning (level 4) C4263 | Microsoft Learn](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4263?view=msvc-170)

I have tried adding “#pragma warning(disable : 4263 4264)” at the top of my plugin’s header, and while this suppresses the errors and allows me to build the solution, once Cinema 4D opens, my plugin is not listed.

I have also tried lowering the “Warning Level” in my project’s properties, but the errors keep showing up.

I have spent quite some time trying to mess with the code in the problematic file (“exposure\_compensate.hpp”), but thus far I haven’t succeeded in getting rid of the errors. Truth to be told, I am not sure what I’m doing. Plus, I don’t know if I should be messing with OpenCV’s files…?

Anyway 😥 This is quite a show-stopper and I don’t know if I should keep holding my breath as to whether I can solve this or not.

So, with that said, any guidance or help would be _massively_ appreciated!

Thank you guys!! 🙏

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [January 13, 2024, 9:25am UTC](https://forum.opencv.org/t/exposure-compensate-is-throwing-errors-c4263-c4263/16141/2 "2024-01-13T09:25:27Z")

</div>

I’m afraid I won’t be much help with this.

you should file an issue on opencv’s github. please work out a [MRE](https://stackoverflow.com/help/minimal-reproducible-example) so this issue is easy to reproduce for the core developers.

---

<div class="post-metadata">

**Author:** ![sasha\_janvier](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sasha_janvier/32/9483_2.png) [@sasha\_janvier](https://forum.opencv.org/u/sasha_janvier)\
**Post date:** [January 13, 2024, 8:39pm UTC](https://forum.opencv.org/t/exposure-compensate-is-throwing-errors-c4263-c4263/16141/3 "2024-01-13T20:39:56Z")

</div>

Hey @crackwitz,

Thank you so very much. This is actually very helpful. I really appreciate it!

Thank you again!

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [January 14, 2024, 11:19am UTC](https://forum.opencv.org/t/exposure-compensate-is-throwing-errors-c4263-c4263/16141/4 "2024-01-14T11:19:30Z")

</div>

> [@sasha\_janvier](#):
>
> | Severity | Code | Description | Project | File | Line | Suppression State |
> | --- | --- | --- | --- | --- | --- | --- |
> | Error | C4263 | '`void cv::detail::BlocksCompensator::feed(const std::vector<cv::Point,std::allocator<cv::Point>> &,const std::vector<cv::UMat,std::allocator<cv::UMat>> &,const std::vector<std::pair<cv::UMat,uchar>,std::allocator<std::pair<cv::UMat,uchar>>> &)': member function does not override any base class virtual member function` | plugin\_alpha-v001 | C:\opencv\build\include\opencv2\stitching\detail\exposure\_compensate.hpp | 190 | |
> 
> Severity Code Description Project File Line Suppression State Error C4264 '`void cv::detail::ExposureCompensator::feed(const std::vector<cv::Point,std::allocator<cv::Point>> &,const std::vector<cv::UMat,std::allocator<cv::UMat>> &,const std::vector<std::pair<cv::UMat,uchar>,std::allocator<std::pair<cv::UMat,uchar>>> &)': no override available for virtual member function from base 'cv::detail::ExposureCompensator'; function is hidden`

There is no error building opencv using lastest version with VS2022  
Which opencv version did you build?
