Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to load multiple iplimages and save with extra words to original words?

Hi. I am beginner of OpenCV. And I am using OpenCV 2. BUT I found the way to load multiple images with cv::glob. However, i found that counting the images but cannot show my several images with iplimages and crushed with the path string after cv::glob .

SO HERE IS MY QUESTION : 1. I want to know show to use the cv:glob for handling load and save with it. 2. How can i save with extra words to original vocabulary when i am using the cvSaveImage()

How to load multiple iplimages and save with extra words to original words?

Hi. I am beginner of OpenCV. OpenCV.
And I am using OpenCV 2. 2.
BUT I found the way to load multiple images with cv::glob. However, i found that counting the images but cannot show my several images with iplimages and crushed with the path string after cv::glob .

SO HERE IS MY QUESTION : :
1. I want to know show to use the cv:glob for handling load and save with it. 2. it.
std::vector<cv::string> fn;
cv::glob(".\result\*.png", fn);
std::vector<cv::mat> inputs;
for (auto i = 0; i < fn.size(); i++) {
      inputs.push_back(cv::imread(fn[i]));
      printf("%s\n", fn[i]);
}

  1. How can i save with extra words to original vocabulary when i am using the cvSaveImage()

How to load multiple iplimages and save with extra words to original words?

Hi. I am beginner of OpenCV.
And I am using OpenCV 2.
BUT I found the way to load multiple images with cv::glob. However, i found that counting the images but cannot show my several images with iplimages and crushed with the path string after cv::glob .

SO HERE IS MY QUESTION :
1. I want to know show to use the cv:glob for handling load and save with it.
std::vector<cv::string> fn;
cv::glob(".\result\*.png", fn);
std::vector<cv::mat> inputs;
for (auto i = 0; i < fn.size(); i++) {
      inputs.push_back(cv::imread(fn[i]));
      printf("%s\n", fn[i]);
}

  1. 2. How can i save with extra words to original vocabulary when i am using the cvSaveImage()

How to load multiple iplimages and save with extra words to original words?

Hi. I am beginner of OpenCV.
And I am using OpenCV 2.
BUT I found the way to load multiple images with cv::glob. However, i found that counting the images but cannot show my several images with iplimages and crushed with the path string after cv::glob .

SO HERE IS MY QUESTION :
1. I want to know show to use the cv:glob for handling load and save with it.
std::vector<cv::string> fn;
cv::glob(".\result\*.png", fn);
std::vector<cv::mat> inputs;
for (auto i = 0; i < fn.size(); i++) {
      inputs.push_back(cv::imread(fn[i]));
      printf("%s\n",       printf("%d = %s\n",i, fn[i]);
}

2. How can i save with extra words to original vocabulary when i am using the cvSaveImage()

How to load multiple iplimages and save with extra words to original words?

Hi. I am beginner of OpenCV.
And I am using OpenCV 2.
BUT I found the way to load multiple images with cv::glob. However, i found that counting the images but cannot show my several images with iplimages and crushed with the path string after cv::glob .

SO HERE IS MY QUESTION :
1. I want to know show to use the cv:glob for handling load and save with it.
image description
std::vector<cv::string> fn;
cv::glob(".\result\*.png", fn);
std::vector<cv::mat> inputs;
for (auto i = 0; i < fn.size(); i++) {
      inputs.push_back(cv::imread(fn[i]));
      printf("%d = %s\n",i, fn[i]);
}

2. How can i save with extra words to original vocabulary when i am using the cvSaveImage()cvSaveImage()!

click to hide/show revision 6
None

updated 2019-05-10 03:08:52 -0600

berak gravatar image

How to load multiple iplimages and save with extra words to original words?

Hi. I am beginner of OpenCV.
And I am using OpenCV 2.
BUT I found the way to load multiple images with cv::glob. However, i found that counting the images but cannot show my several images with iplimages and crushed with the path string after cv::glob .

SO HERE IS MY QUESTION :
1. I want to know show to use the cv:glob for handling load and save with it.
image description

std::vector<cv::string> fn;
cv::glob(".\result\*.png", fn);
std::vector<cv::mat> inputs;
std::vector<cv::String> fn;
cv::glob(".\\result\\*.png", fn);
std::vector<cv::Mat> inputs;
for (auto i = 0; i < fn.size(); i++) {
      inputs.push_back(cv::imread(fn[i]));
      printf("%d
{ inputs.push_back(cv::imread(fn[i])); printf("%d = %s\n",i, fn[i]);
fn[i]); }
}

2.
  1. How can i save with extra words to original vocabulary when i am using the cvSaveImage()!