karlgustavjohansson | 1 Aug 23:07 2012
Picon

Help with gpu::dft output (DFT_REAL_OUTPUT)

Hi,

When I use the CPU version of opencv DFT I can specify the output as "DFT_REAL_OUTPUT" but this does not work
with the GPU version of DFT.
If the input matrix is of type 32f the ouput type is 32f in the cpu version.
dft(padded1CPU, fft1CPU, DFT_REAL_OUTPUT);

When I use this for the gpu version: gpu::dft(padded1, fft1, padded1.size());

The fft1 becommes a 32f2 with two channels half the with of the cpu.
How can I merge this so the output is the same ouptut as in the cpu function?

Thanks

/Zeiko

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
rubi faith | 1 Aug 18:50 2012
Picon

hue histogram [2 Attachments]

[Attachment(s) from rubi faith included below]

Dear Friends ,

I want to make color representation in the hue-saturation plane of HSV image as shown in attached hueImg.jpg .
Could any one please help me to do that . thanks 

One more issue is i can draw histogram of hue for intensity range 0 to 255 .
but i wanna draw histogram of hue only that run from 0 to1 79 as opencv used as shown in the attached image hueInfo Img.jpg. 
.
Could any one please guide me how to make it .
thanks 


Attachment(s) from rubi faith

2 of 2 Photo(s)



Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Sven Wiegand | 1 Aug 12:25 2012
Picon

How to use LUC with the LAB Colorspace?



Hi,
i want to use the LUC feature with the LAB-Colorspace.
My problem is that LAB use a range between -128 up to 128.
How can i acces the negative values?

Greetings,
swi


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
ravi | 1 Aug 06:29 2012
Picon

Floor Detection

hi , May i know the possible ways in which we can detect floor region, where obstacles are shown in different color.

And is it possible that a i take a picture of floor and later when i get one more picture i can detect floor in the
image and get the region.

I know am going a bit deep but , to say i am just a newbie trying to figure out things , Greetings

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
elshayalsmartgis | 1 Aug 05:03 2012
Picon

Elshayal Smart GIS is available now in SkyDrive download Storage



Elshayal Smart GIS is available now in SkyDrive download Storage
https://skydrive.live.com/redir?resid=D39F38C421034734!125

 



__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Seereen Noorwali | 31 Jul 23:29 2012
Picon

SURF with avi videos



Hi everyone ... 

I applied SURF algorithm on avi video ,,, but I faced strange problems on my code 

Actually I am working on MAC os x 10.6.8  and I am using xcode 3.2.3    

when I run the code it is work for a while then it is stop ... it's give me a strange error "program receive signal "SIGABRT"

I did some search in google about this error .. but I does not solve this problem 

I am not sure if this error come from my code or from the xcode ! 

I will be so appreciate if some one check my code and let me know if it has any problem 

or if you have the solution for t his strange error 

Thanks in Advance 

Seereen 


this is my code 

#include <stdio.h>

#include <opencv2/opencv.hpp>

#include <opencv2/highgui/highgui.hpp>

#include <opencv/ml.h>

#include <opencv/cxcore.h>

#include <opencv/cv.h>

#include <opencv2/features2d/features2d.hpp>

#include <opencv2/nonfree/nonfree.hpp>

#include <opencv2/core/core.hpp>

#include <opencv2/calib3d/calib3d.hpp> 

#include <opencv2/imgproc/imgproc_c.h>



using namespace cv;

//using namespace std;


int main (int argc, char * const argv[])

{

cvNamedWindow( "Example", CV_WINDOW_AUTOSIZE );

CvMemStorage* storage = cvCreateMemStorage();

static CvScalar red_color[] ={0,0,255};


// GET video

CvCapture* capture = cvCreateFileCapture( "myvideo.avi" );

if (!capture ) 

{

printf( "Unable to read input video." );

return 0;

}

double fps = cvGetCaptureProperty( capture,CV_CAP_PROP_FPS);

// printf( "fps %f ",fps );

// Read frame

IplImage* frame = cvQueryFrame( capture );

// INIT the video writer

CvVideoWriter *writer = cvCreateVideoWriter( "surf.avi", CV_FOURCC('F','F','V','1'), fps, cvGetSize(frame));


while(1

{

CvSeq *imageKeypoints = 0, *imageDescriptors = 0;

int i;

//Extract SURF points by initializing parameters

CvSURFParams params = cvSURFParams(500, 1);

cvExtractSURF( frame, 0, &imageKeypoints, &imageDescriptors, storage, params );

//draw the keypoints on the captured frame

for( i = 0; i < imageKeypoints->total; i++ )

{

CvSURFPoint* r = (CvSURFPoint*)cvGetSeqElem( imageKeypoints, i );

CvPoint center;

int radius;

center.x = cvRound(r->pt.x);

center.y = cvRound(r->pt.y);

//radius = cvRound(r->size*1.2/9.*2);

radius = 5;

cvCircle( frame, center, radius, red_color[0], 1, 8, 0 );

}

cvWriteFrame( writer, frame );

cvShowImage( "Example", frame );

// READ next frame

frame = cvQueryFrame( capture );

if( !frame ) 

break;

char c = cvWaitKey(33);

if( c == 27

break;

}

    // CLEAN everything

cvReleaseImage( &frame );

cvReleaseCapture( &capture );

cvReleaseVideoWriter( &writer );

cvDestroyWindow( "Example" );

    return 0;

}



__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Yili Zhao | 30 Jul 16:13 2012
Picon

OpenCV 2.4.2 API documentation

Hi,
  when using OpenCV, I think an API documentation is necessary from
time to time.

  However, it seems that there is no such API documentation exist in
official OpenCV release.

  Does OpenCV team has plan for an API documentation like generated by Doxygen?

  Or someone has generated it?

  Thanks!

--

-- 
Yili Zhao

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
ai4777@ymail.com | 31 Jul 10:50 2012

Opencv web camera capture trouble.

Hello. I have encountered a problem with a web camera using opencv. 
I made a simple winapi application based on the following example:
http://opencv.willowgarage.com/wiki/CameraCapture

However, cvQueryFrame always returned NULL. I found out that opencv uses VFW in this case and I added
capDlgVideoFormat() call in IplImage* CvCaptureCAM_VFW::retrieveFrame(int).
It clarified that my web cam supports only YUY2 and MJPG formats, because there are only these two options
avaliable in the dialog box created by capDlgVideoFormat. When i chose MJPG, cvQueryFrame returned NULL
and captured nothing and i saw a black window instead of preview, but when i chose YUY2 i could see preview
normally and the program captured a frame, but it was just a grey rectangle.
After further investigation, i determined that CvCaptureCAM_VFW::retrieveFrame(int) calls

ICDecompress(hic, 0, &vfmt0, hdr->lpData,&vfmt1, frame->imageData)

The call fails when i choose MJPG in the dialog and succeeds when i choose YUY2. However, in this case
frame->imageData buffer seems to remain intact after this call, containing uninitialized garbage that
i can see as a grey rectangle on the screen. The input buffer is ok and it contains my frame that i can normally
save or put into the window.

It seems to me that it may have something to do with codecs. After i installed a couple of them the situation
looks like that.
Now i can normally see preview, no matter what i choose: YUY2 or MJPG. But when i try to capture a frame it is all
the same - NULL for MJPG and a grey screen for YUY2.

I build and run my test program under windows server 2008 r2 x64.

I would really appreciate some advice. Unfortunately, I'm running out of time and do not have much of it left
to investigate the problem any further on my own.

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Lucas Vickers | 31 Jul 04:14 2012
Picon

Does anyone have 2.4 compiled for OS X 10.6 32 bit? (or universal)



I am trying to get 2.4 compiled on macports and there are a variety of issues.
I will be attempting to manually compile but if anyone has the libs it could save me a large amount of time.

thanks!
Lucas


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Picon

Get Image descriptor from HogDescriptor::compute



I am trying to get image hog descriptor from this code
    Mat img;
    img=imread("a.jpg",1);
    vector<float> *des=new vector<float>();
    vector<Point > location;
    Size img_size(64,128),block_size(16,16),block_stride(8,8),cell_size(8,8),win_stride(8,8),pad(0,0);
    HOGDescriptor hog(img_size,block_size,block_stride,cell_size,9,-1.0,0,0.2,false,64);  
    hog.compute(img,*des,win_stride,pad,location);   
  
B ut it returns with a runtime error saying,
OpenCV Error: Assertion failed (dims <=2 && step[0]>0) in unknown function, file c:\Users\vp\work\ocv\opencv\modules\core\src\matrix.cpp, line 647

What have I done wrong..Please help.


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Ted Jackson | 29 Jul 00:59 2012
Picon

OpenCV Paths Headache

Hello,

I am trying to develop OpenCV (2.4.2) C++ applications on Windows XP, 
using the Eclipse SDK (3.7.2) with the CDT plugin. I'm ultimately 
interesting in porting the code to Android, but am just trying to get 
a simple Windows EXE to compile in Eclipse for now. For the life of 
me, I cannot figure out how to set up the include and library paths 
in Eclipse. I've read text after text on the matter and not ONE of 
them really helps. Time and again I've seen references to the CV 
directory within the OpenCV directory structure, which doesn't even 
exist anymore in the current 2.4.2 version. There are eight 'highgui' 
directories, and a whopping 37 'include' directories.

Can anyone please tell me exactly what OpenCV directories (header and 
library) are needed to compile successfully in Eclipse?

Thanks,
   Ted

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com

Gmane