Quantcast

Doubts

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Doubts

opencv-users mailing list
Dear Sir,
I want to display an image from folder containing several images. Please me out this soon. Thanks in advance.
Thanks and regards-Deepak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Doubts

opencv-users mailing list
you may use boost

    "Deepak Achar [hidden email] [OpenCV]" <[hidden email]> 於 2016/1/4 (週一) 6:14 PM 寫道﹕
 

     Dear Sir,
I want to display an image from folder containing several images. Please me out this soon. Thanks in advance.
Thanks and regards-Deepak  #yiv9397385708 #yiv9397385708 -- #yiv9397385708ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv9397385708 #yiv9397385708ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv9397385708 #yiv9397385708ygrp-mkp #yiv9397385708hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv9397385708 #yiv9397385708ygrp-mkp #yiv9397385708ads {margin-bottom:10px;}#yiv9397385708 #yiv9397385708ygrp-mkp .yiv9397385708ad {padding:0 0;}#yiv9397385708 #yiv9397385708ygrp-mkp .yiv9397385708ad p {margin:0;}#yiv9397385708 #yiv9397385708ygrp-mkp .yiv9397385708ad a {color:#0000ff;text-decoration:none;}#yiv9397385708 #yiv9397385708ygrp-sponsor #yiv9397385708ygrp-lc {font-family:Arial;}#yiv9397385708 #yiv9397385708ygrp-sponsor #yiv9397385708ygrp-lc #yiv9397385708hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv9397385708 #yiv9397385708ygrp-sponsor #yiv9397385708ygrp-lc .yiv9397385708ad {margin-bottom:10px;padding:0 0;}#yiv9397385708 #yiv9397385708actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv9397385708 #yiv9397385708activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv9397385708 #yiv9397385708activity span {font-weight:700;}#yiv9397385708 #yiv9397385708activity span:first-child {text-transform:uppercase;}#yiv9397385708 #yiv9397385708activity span a {color:#5085b6;text-decoration:none;}#yiv9397385708 #yiv9397385708activity span span {color:#ff7900;}#yiv9397385708 #yiv9397385708activity span .yiv9397385708underline {text-decoration:underline;}#yiv9397385708 .yiv9397385708attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv9397385708 .yiv9397385708attach div a {text-decoration:none;}#yiv9397385708 .yiv9397385708attach img {border:none;padding-right:5px;}#yiv9397385708 .yiv9397385708attach label {display:block;margin-bottom:5px;}#yiv9397385708 .yiv9397385708attach label a {text-decoration:none;}#yiv9397385708 blockquote {margin:0 0 0 4px;}#yiv9397385708 .yiv9397385708bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv9397385708 .yiv9397385708bold a {text-decoration:none;}#yiv9397385708 dd.yiv9397385708last p a {font-family:Verdana;font-weight:700;}#yiv9397385708 dd.yiv9397385708last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv9397385708 dd.yiv9397385708last p span.yiv9397385708yshortcuts {margin-right:0;}#yiv9397385708 div.yiv9397385708attach-table div div a {text-decoration:none;}#yiv9397385708 div.yiv9397385708attach-table {width:400px;}#yiv9397385708 div.yiv9397385708file-title a, #yiv9397385708 div.yiv9397385708file-title a:active, #yiv9397385708 div.yiv9397385708file-title a:hover, #yiv9397385708 div.yiv9397385708file-title a:visited {text-decoration:none;}#yiv9397385708 div.yiv9397385708photo-title a, #yiv9397385708 div.yiv9397385708photo-title a:active, #yiv9397385708 div.yiv9397385708photo-title a:hover, #yiv9397385708 div.yiv9397385708photo-title a:visited {text-decoration:none;}#yiv9397385708 div#yiv9397385708ygrp-mlmsg #yiv9397385708ygrp-msg p a span.yiv9397385708yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv9397385708 .yiv9397385708green {color:#628c2a;}#yiv9397385708 .yiv9397385708MsoNormal {margin:0 0 0 0;}#yiv9397385708 o {font-size:0;}#yiv9397385708 #yiv9397385708photos div {float:left;width:72px;}#yiv9397385708 #yiv9397385708photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv9397385708 #yiv9397385708photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv9397385708 #yiv9397385708reco-category {font-size:77%;}#yiv9397385708 #yiv9397385708reco-desc {font-size:77%;}#yiv9397385708 .yiv9397385708replbq {margin:4px;}#yiv9397385708 #yiv9397385708ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv9397385708 #yiv9397385708ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv9397385708 #yiv9397385708ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv9397385708 #yiv9397385708ygrp-mlmsg select, #yiv9397385708 input, #yiv9397385708 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv9397385708 #yiv9397385708ygrp-mlmsg pre, #yiv9397385708 code {font:115% monospace;}#yiv9397385708 #yiv9397385708ygrp-mlmsg * {line-height:1.22em;}#yiv9397385708 #yiv9397385708ygrp-mlmsg #yiv9397385708logo {padding-bottom:10px;}#yiv9397385708 #yiv9397385708ygrp-msg p a {font-family:Verdana;}#yiv9397385708 #yiv9397385708ygrp-msg p#yiv9397385708attach-count span {color:#1E66AE;font-weight:700;}#yiv9397385708 #yiv9397385708ygrp-reco #yiv9397385708reco-head {color:#ff7900;font-weight:700;}#yiv9397385708 #yiv9397385708ygrp-reco {margin-bottom:20px;padding:0px;}#yiv9397385708 #yiv9397385708ygrp-sponsor #yiv9397385708ov li a {font-size:130%;text-decoration:none;}#yiv9397385708 #yiv9397385708ygrp-sponsor #yiv9397385708ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv9397385708 #yiv9397385708ygrp-sponsor #yiv9397385708ov ul {margin:0;padding:0 0 0 8px;}#yiv9397385708 #yiv9397385708ygrp-text {font-family:Georgia;}#yiv9397385708 #yiv9397385708ygrp-text p {margin:0 0 1em 0;}#yiv9397385708 #yiv9397385708ygrp-text tt {font-size:120%;}#yiv9397385708 #yiv9397385708ygrp-vital ul li:last-child {border-right:none !important;}#yiv9397385708

 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Doubts

opencv-users mailing list
In reply to this post by opencv-users mailing list
Use   img = imread("path/image.jpg",-1);

 

From: [hidden email] [mailto:[hidden email]]
Sent: Monday, January 04, 2016 12:11 PM
To: [hidden email]
Subject: [OpenCV] Doubts

 

 

Dear Sir,

 

I want to display an image from folder containing several images. Please me out this soon. Thanks in advance.

 

Thanks and regards

-Deepak



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Doubts

opencv-users mailing list
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"

using namespace cv;
using namespace std;

int main()
{
    vector<String> filenames;
    String folder = "*.jpg"; // you can specify a path and file mask

    glob(folder, filenames);

    for(size_t i = 0; i < filenames.size(); ++i)
    {
        Mat src = imread(filenames[i]); // open image

        if(src.data)
        {
            imshow( filenames[i], src );
        }
    }
    return 0;
}
To: [hidden email]
From: [hidden email]
Date: Mon, 4 Jan 2016 13:08:55 +0200
Subject: RE: [OpenCV] Doubts














 

 



 


   
     
     
     
Use   img = imread("path/image.jpg",-1); From: [hidden email] [mailto:[hidden email]]
Sent: Monday, January 04, 2016 12:11 PM
To: [hidden email]
Subject: [OpenCV] Doubts   Dear Sir, I want to display an image from folder containing several images. Please me out this soon. Thanks in advance. Thanks and regards-Deepak


   
     

   
   






       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Doubts

opencv-users mailing list
Hi,
String folder = "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\*.jpg";

how to give a path name here. Is this right...

    On Monday, 4 January 2016 4:54 PM, "Suleyman Turkmen [hidden email] [OpenCV]" <[hidden email]> wrote:
 

     #include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"

using namespace cv;
using namespace std;

int main()
{
    vector<String> filenames;
    String folder = "*.jpg"; // you can specify a path and file mask

    glob(folder, filenames);

    for(size_t i = 0; i < filenames.size(); ++i)
    {
        Mat src = imread(filenames[i]); // open image

        if(src.data)
        {
            imshow( filenames[i], src );
        }
    }
    return 0;
}
To: [hidden email]
From: [hidden email]
Date: Mon, 4 Jan 2016 13:08:55 +0200
Subject: RE: [OpenCV] Doubts

    
Use   img = imread("path/image.jpg",-1); From: [hidden email] [mailto:[hidden email]]
Sent: Monday, January 04, 2016 12:11 PM
To: [hidden email]
Subject: [OpenCV] Doubts   Dear Sir, I want to display an image from folder containing several images. Please me out this soon. Thanks in advance. Thanks and regards-Deepak
      #yiv4742566582 #yiv4742566582 -- #yiv4742566582ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv4742566582 #yiv4742566582ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv4742566582 #yiv4742566582ygrp-mkp #yiv4742566582hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv4742566582 #yiv4742566582ygrp-mkp #yiv4742566582ads {margin-bottom:10px;}#yiv4742566582 #yiv4742566582ygrp-mkp .yiv4742566582ad {padding:0 0;}#yiv4742566582 #yiv4742566582ygrp-mkp .yiv4742566582ad p {margin:0;}#yiv4742566582 #yiv4742566582ygrp-mkp .yiv4742566582ad a {color:#0000ff;text-decoration:none;}#yiv4742566582 #yiv4742566582ygrp-sponsor #yiv4742566582ygrp-lc {font-family:Arial;}#yiv4742566582 #yiv4742566582ygrp-sponsor #yiv4742566582ygrp-lc #yiv4742566582hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv4742566582 #yiv4742566582ygrp-sponsor #yiv4742566582ygrp-lc .yiv4742566582ad {margin-bottom:10px;padding:0 0;}#yiv4742566582 #yiv4742566582actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv4742566582 #yiv4742566582activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv4742566582 #yiv4742566582activity span {font-weight:700;}#yiv4742566582 #yiv4742566582activity span:first-child {text-transform:uppercase;}#yiv4742566582 #yiv4742566582activity span a {color:#5085b6;text-decoration:none;}#yiv4742566582 #yiv4742566582activity span span {color:#ff7900;}#yiv4742566582 #yiv4742566582activity span .yiv4742566582underline {text-decoration:underline;}#yiv4742566582 .yiv4742566582attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv4742566582 .yiv4742566582attach div a {text-decoration:none;}#yiv4742566582 .yiv4742566582attach img {border:none;padding-right:5px;}#yiv4742566582 .yiv4742566582attach label {display:block;margin-bottom:5px;}#yiv4742566582 .yiv4742566582attach label a {text-decoration:none;}#yiv4742566582 blockquote {margin:0 0 0 4px;}#yiv4742566582 .yiv4742566582bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv4742566582 .yiv4742566582bold a {text-decoration:none;}#yiv4742566582 dd.yiv4742566582last p a {font-family:Verdana;font-weight:700;}#yiv4742566582 dd.yiv4742566582last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv4742566582 dd.yiv4742566582last p span.yiv4742566582yshortcuts {margin-right:0;}#yiv4742566582 div.yiv4742566582attach-table div div a {text-decoration:none;}#yiv4742566582 div.yiv4742566582attach-table {width:400px;}#yiv4742566582 div.yiv4742566582file-title a, #yiv4742566582 div.yiv4742566582file-title a:active, #yiv4742566582 div.yiv4742566582file-title a:hover, #yiv4742566582 div.yiv4742566582file-title a:visited {text-decoration:none;}#yiv4742566582 div.yiv4742566582photo-title a, #yiv4742566582 div.yiv4742566582photo-title a:active, #yiv4742566582 div.yiv4742566582photo-title a:hover, #yiv4742566582 div.yiv4742566582photo-title a:visited {text-decoration:none;}#yiv4742566582 div#yiv4742566582ygrp-mlmsg #yiv4742566582ygrp-msg p a span.yiv4742566582yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv4742566582 .yiv4742566582green {color:#628c2a;}#yiv4742566582 .yiv4742566582MsoNormal {margin:0 0 0 0;}#yiv4742566582 o {font-size:0;}#yiv4742566582 #yiv4742566582photos div {float:left;width:72px;}#yiv4742566582 #yiv4742566582photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv4742566582 #yiv4742566582photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv4742566582 #yiv4742566582reco-category {font-size:77%;}#yiv4742566582 #yiv4742566582reco-desc {font-size:77%;}#yiv4742566582 .yiv4742566582replbq {margin:4px;}#yiv4742566582 #yiv4742566582ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv4742566582 #yiv4742566582ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv4742566582 #yiv4742566582ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv4742566582 #yiv4742566582ygrp-mlmsg select, #yiv4742566582 input, #yiv4742566582 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv4742566582 #yiv4742566582ygrp-mlmsg pre, #yiv4742566582 code {font:115% monospace;}#yiv4742566582 #yiv4742566582ygrp-mlmsg * {line-height:1.22em;}#yiv4742566582 #yiv4742566582ygrp-mlmsg #yiv4742566582logo {padding-bottom:10px;}#yiv4742566582 #yiv4742566582ygrp-msg p a {font-family:Verdana;}#yiv4742566582 #yiv4742566582ygrp-msg p#yiv4742566582attach-count span {color:#1E66AE;font-weight:700;}#yiv4742566582 #yiv4742566582ygrp-reco #yiv4742566582reco-head {color:#ff7900;font-weight:700;}#yiv4742566582 #yiv4742566582ygrp-reco {margin-bottom:20px;padding:0px;}#yiv4742566582 #yiv4742566582ygrp-sponsor #yiv4742566582ov li a {font-size:130%;text-decoration:none;}#yiv4742566582 #yiv4742566582ygrp-sponsor #yiv4742566582ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv4742566582 #yiv4742566582ygrp-sponsor #yiv4742566582ov ul {margin:0;padding:0 0 0 8px;}#yiv4742566582 #yiv4742566582ygrp-text {font-family:Georgia;}#yiv4742566582 #yiv4742566582ygrp-text p {margin:0 0 1em 0;}#yiv4742566582 #yiv4742566582ygrp-text tt {font-size:120%;}#yiv4742566582 #yiv4742566582ygrp-vital ul li:last-child {border-right:none !important;}#yiv4742566582

 
Loading...