Update Samples

This commit is contained in:
Suleyman TURKMEN
2019-07-28 12:09:17 +03:00
committed by sturkmen72
parent 9ef5373776
commit f73395122c
72 changed files with 251 additions and 271 deletions

View File

@@ -1,5 +1,5 @@
/**
* @file LinearBlend.cpp
* @file AddingImagesTrackbar.cpp
* @brief Simple linear blender ( dst = alpha*src1 + beta*src2 )
* @author OpenCV team
*/
@@ -44,8 +44,8 @@ int main( void )
{
//![load]
/// Read images ( both have to be of the same size and type )
src1 = imread("../data/LinuxLogo.jpg");
src2 = imread("../data/WindowsLogo.jpg");
src1 = imread( samples::findFile("LinuxLogo.jpg") );
src2 = imread( samples::findFile("WindowsLogo.jpg") );
//![load]
if( src1.empty() ) { cout << "Error loading src1 \n"; return -1; }

View File

@@ -1,5 +1,5 @@
/**
* @file LinearTransforms.cpp
* @file BasicLinearTransformsTrackbar.cpp
* @brief Simple program to change contrast and brightness
* @date Mon, June 6, 2011
* @author OpenCV team
@@ -44,12 +44,12 @@ static void on_trackbar( int, void* )
int main( int argc, char** argv )
{
/// Read image given by user
String imageName("../data/lena.jpg"); // by default
String imageName("lena.jpg"); // by default
if (argc > 1)
{
imageName = argv[1];
}
image = imread( imageName );
image = imread( samples::findFile( imageName ) );
/// Initialize values
alpha = 1;