mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
"no previous declaration" warnings fixed in samples
This commit is contained in:
parent
289d879d48
commit
d7db220196
@ -27,6 +27,13 @@ enum UserMemoryMode
|
|||||||
COPY, USER_MEM
|
COPY, USER_MEM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vx_image convertCvMatToVxImage(vx_context context, cv::Mat image, bool toCopy);
|
||||||
|
cv::Mat copyVxImageToCvMat(vx_image ovxImage);
|
||||||
|
void swapVxImage(vx_image ovxImage);
|
||||||
|
vx_status createProcessingGraph(vx_image inputImage, vx_image outputImage, vx_graph& graph);
|
||||||
|
int ovxDemo(std::string inputPath, UserMemoryMode mode);
|
||||||
|
|
||||||
|
|
||||||
vx_image convertCvMatToVxImage(vx_context context, cv::Mat image, bool toCopy)
|
vx_image convertCvMatToVxImage(vx_context context, cv::Mat image, bool toCopy)
|
||||||
{
|
{
|
||||||
if (!(!image.empty() && image.dims <= 2 && image.channels() == 1))
|
if (!(!image.empty() && image.dims <= 2 && image.channels() == 1))
|
||||||
|
@ -15,6 +15,10 @@ enum UserMemoryMode
|
|||||||
COPY, USER_MEM, MAP
|
COPY, USER_MEM, MAP
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ivx::Graph createProcessingGraph(ivx::Image& inputImage, ivx::Image& outputImage);
|
||||||
|
int ovxDemo(std::string inputPath, UserMemoryMode mode);
|
||||||
|
|
||||||
|
|
||||||
ivx::Graph createProcessingGraph(ivx::Image& inputImage, ivx::Image& outputImage)
|
ivx::Graph createProcessingGraph(ivx::Image& inputImage, ivx::Image& outputImage)
|
||||||
{
|
{
|
||||||
using namespace ivx;
|
using namespace ivx;
|
||||||
|
@ -15,6 +15,10 @@ enum UserMemoryMode
|
|||||||
COPY, USER_MEM, MAP
|
COPY, USER_MEM, MAP
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ivx::Graph createProcessingGraph(ivx::Image& inputImage, ivx::Image& outputImage);
|
||||||
|
int ovxDemo(std::string inputPath, UserMemoryMode mode);
|
||||||
|
|
||||||
|
|
||||||
ivx::Graph createProcessingGraph(ivx::Image& inputImage, ivx::Image& outputImage)
|
ivx::Graph createProcessingGraph(ivx::Image& inputImage, ivx::Image& outputImage)
|
||||||
{
|
{
|
||||||
using namespace ivx;
|
using namespace ivx;
|
||||||
|
Loading…
Reference in New Issue
Block a user