Skip to content

Commit

Permalink
[image] ConvertionOpenCV: improve the documentation
Browse files Browse the repository at this point in the history
This commit harmonizes the descriptions of existing and unmodified
functions, and corrects an error with the Doxygen tags.
  • Loading branch information
cbentejac committed Dec 2, 2022
1 parent 58eb275 commit 68365fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/aliceVision/image/convertionOpenCV.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace image
* @param[in] color - value to set
* @param[in] factor - optional scale factor
* @param[in] delta - optional delta added to the scaled values
* @return the resulting openCV image
*/
template <typename VecType, typename ValueType>
inline void setValueCvMatBGR(cv::Mat& mat, int i, int j, const image::RGBAfColor& color, float factor = 1.f,
Expand All @@ -42,11 +41,11 @@ inline void setValueCvMatBGR(cv::Mat& mat, int i, int j, const image::RGBAfColor


/**
* @brief Converts an aliceVision image to an openCv image (cv::Mat) in BGR
* @brief Converts an aliceVision image to an OpenCV image (cv::Mat) in BGR
* Ignores the alpha channel of the source image
* @param[in] img - Input RGBA aliceVision image
* @param[in] img - input RGBA aliceVision image
* @param[in] cvtype - OpenCV mat type (supported values: CV_32FC3, CV_8UC3)
* @return the resulting openCV image
* @return the resulting OpenCV image
*/
inline cv::Mat imageRGBAToCvMatBGR(const image::Image<image::RGBAfColor>& img, int cvtype = CV_32FC3)
{
Expand Down

0 comments on commit 68365fe

Please sign in to comment.