Skip to content

Commit

Permalink
Corrected the header, added output.
Browse files Browse the repository at this point in the history
  • Loading branch information
garybradski authored Jun 30, 2017
1 parent a85b647 commit 125e345
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions example_07-01.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
// alphablend <imageA> <image B> <x> <y> <width> <height> <alpha> <beta>
//
// Example 7-1. Using the default random number generator to generate a pair of integers
// and a pair of floating-point numbers

//#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
cout << "\nExample 7-1. Using the default random number generator"
<< "\nto generate a pair of integers and a pair of"
<< "\n floating-point numbers"
<< "\n\nCall:\n" << argv[0] << "\n" << endl;

cv::RNG rng = cv::theRNG();
cout << "An integer: " << (int)rng << endl;
Expand Down

0 comments on commit 125e345

Please sign in to comment.