Your one step resource for getting your Free Online Education Degree
Planning to Study Abroad
Know about Admission Procedures Register Now & Get Free Counseling
You can replace this text by going to "Layout" and then "Page Elements" section. Edit " About "
I'm trying to follow the example in the two samples descriptor_extractor_matcher and matching_to_many_images. But I keep having runtime errors. In one attempt I try this...
cv::FlannBasedMatcher matcher;
matcher.match( desc[0], desc[1], matches );
desc[0] and desc[1] are Mats that are 1000 rows (keypoints) by 32 (descriptor values). matches is a vector<DMatch>.
This build fine but crashes on the call to match...
"C:\OpenCV2.2\include\opencv2/flann/flann.hpp:105: error: (-215) dataset.type() == CvType<T>::type()"
In another attempt I tried the following...
cv::Ptr<cv::DescriptorMatcher> matcher = cv::DescriptorMatcher::create( "FlannBased" );
std::vector<cv::Mat> tmp;
tmp.push_back( desc[0] );
matcher->add( tmp );
matcher->match( desc[1], matches );
This build fine but I get this error when it tries to do the match...
"OpenCV Error: Assertion failed (dataset.type() == CvType<T>::type()) in unknown function, file C:\OpenCV2.2\include\opencv2/flann/flann.hpp, line 105"
Can anyone lend a hand in getting this to work? Seems like line 105 of flann.hpp is the culprit? Having to do with the flann Index?
Thanks
OpenCV 2.2, visual c++ 2010 express, debug, windows 7.
You can try to use 32-bit NPP & Toolkit even for Win7 x64.
--- In OpenCV@yahoogroups.com, "logiclips" <logiclips@...> wrote:
>
> Additional information:
>
> I'm using Windows 7 and
> a NVidia Quadro FX 1800M, Version 70.15.41.0.1,
> Cuda Toolkit 3.2, 64 Bit
> NPP 3.2, 64 Bit
> VS 2008
>
>
>
>
> --- In OpenCV@yahoogroups.com, "logiclips" <logiclips@> wrote:
> >
> > Hi,
> >
> > I have the same problem. However, I did not install the toolkit before installing VS. Reinstalling the toolkit resulted in no effect.
> > Does anybody know how to solve this ?
> >
> > Thanks,
> >
> > Peter
> >
> > --- In OpenCV@yahoogroups.com, "Pham" <cao_cuong0306@> wrote:
> > >
> > > you should reinstall gpu_computing-toolkit again, this problem occurs because you install it before Visual Studio.
> > >
> >
>
Additional information:
I'm using Windows 7 and
a NVidia Quadro FX 1800M, Version 70.15.41.0.1,
Cuda Toolkit 3.2, 64 Bit
NPP 3.2, 64 Bit
VS 2008
--- In OpenCV@yahoogroups.com, "logiclips" <logiclips@...> wrote:
>
> Hi,
>
> I have the same problem. However, I did not install the toolkit before installing VS. Reinstalling the toolkit resulted in no effect.
> Does anybody know how to solve this ?
>
> Thanks,
>
> Peter
>
> --- In OpenCV@yahoogroups.com, "Pham" <cao_cuong0306@> wrote:
> >
> > you should reinstall gpu_computing-toolkit again, this problem occurs because you install it before Visual Studio.
> >
>
Hi folks,
I'm currently developing an application on iphone based on opencv and I'm experiencing some random crash with functions using lapack.
My program use to work fine with previous version of iOS (4.1 and 4.2) but crash with 4.3. The weird things is that it only occurs when the code is executed from a thread. If I run it in the main loop it seems to run fine.
However, if i link the code with opencv_lapack, the program seems to run without issue. So I'm not really sure whether the problems comes from opencv or from the Accelerate framwork, but I tried to write a program using dgelsd_ (which is the only lapack function used in this case, AFAIK), but it didn't reproduce the problem.
Here is a sample code to highlight the problem:
------8<---------------8<---------------8<-----------------
#import <UIKit/UIKit.h>
#include <iostream>
#include <opencv2/imgproc/imgproc.hpp>
#include <pthread.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, @"UIApplication", @"AppDelegate");
[pool release];
return retVal;
}
@interface AppDelegate : NSObject <UIApplicationDelegate>
{
pthread_t mythread;
}
@end
@implementation AppDelegate
static bool m_stop;
void* mytest(void* unused)
{
cv::Point2f* basePoints2D = new cv::Point2f[4];
basePoints2D[0] = cv::Point2f(0.0f,0.0f);
basePoints2D[1] = cv::Point2f(10.0f,0.0f);
basePoints2D[2] = cv::Point2f(10.0f,10.0f);
basePoints2D[3] = cv::Point2f(0.0f,10.0f);
cv::Point2f* projPoints2D = new cv::Point2f[4];
projPoints2D[0] = cv::Point2f(1.0f,5.0f);
projPoints2D[1] = cv::Point2f(10.0f,5.0f);
projPoints2D[2] = cv::Point2f(10.0f,10.0f);
projPoints2D[3] = cv::Point2f(1.0f,10.0f);
//this loop crash
while (!m_stop)
{
cv::Mat m = getPerspectiveTransform(basePoints2D, projPoints2D);
std::cout << "threadloop " << m.cols << std::endl;
}
delete[] basePoints2D;
delete[] projPoints2D;
return NULL;
}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
#pragma unused(application)
cv::Point2f* basePoints2D = new cv::Point2f[4];
basePoints2D[0] = cv::Point2f(0.0f,0.0f);
basePoints2D[1] = cv::Point2f(10.0f,0.0f);
basePoints2D[2] = cv::Point2f(10.0f,10.0f);
basePoints2D[3] = cv::Point2f(0.0f,10.0f);
cv::Point2f* projPoints2D = new cv::Point2f[4];
projPoints2D[0] = cv::Point2f(1.0f,5.0f);
projPoints2D[1] = cv::Point2f(10.0f,5.0f);
projPoints2D[2] = cv::Point2f(10.0f,10.0f);
projPoints2D[3] = cv::Point2f(1.0f,10.0f);
//this loop runs fine
for(int i = 0; i < 1000; i++)
{
cv::Mat m = getPerspectiveTransform(basePoints2D, projPoints2D);
std::cout << "mainloop " << i << " " << m.cols << std::endl;
}
delete[] basePoints2D;
delete[] projPoints2D;
m_stop = false;
pthread_create(&mythread, NULL, mytest, NULL);
}
- (void)applicationWillTerminate:(UIApplication *)application {
#pragma unused(application)
m_stop = true;
pthread_join(mythread, NULL);
}
@end
------>8--------------->8--------------->8-----------------
the application logs says:
...
threadloop 3
threadloop 3
TestCV(2666,0x1f3000) malloc: *** error for object 0x272dc4: incorrect checksum for freed object - object was probably modified after being freed.
I also have the same kind of issue with the function solvePnP
My version of OpenCV is 2.2.0 (tarball version), I only patched the library to avoid the compilation of highgui (CMakefiles)
OpenCV has been comiled as following:
cmake \
-D CMAKE_BUILD_TYPE=Debug \
-D BUILD_NEW_PYTHON_SUPPORT=OFF \
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_TESTS=OFF \
-D OPENCV_BUILD_3RDPARTY_LIBS=OFF \
-D WITH_1394=OFF \
-D WITH_CARBON=OFF \
-D WITH_FFMPEG=OFF \
-D WITH_JASPER=OFF \
-D WITH_PVAPI=OFF \
-D WITH_QUICKTIME=OFF \
-D WITH_TBB=OFF \
-D WITH_TIFF=OFF \
-D WITH_JPEG=OFF \
-D WITH_CUDA=OFF \
-D WITH_OPENEXR=OFF \
-D WITH_PNG=OFF \
-D CMAKE_OSX_SYSROOT="${SDK_ROOT}" \
-D CMAKE_OSX_ARCHITECTURES="armv7" \
-D CMAKE_C_COMPILER="${DEVELOPER_ROOT}/usr/bin/gcc" \
-D CMAKE_CXX_COMPILER="${DEVELOPER_ROOT}/usr/bin/g++" \
-D CMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" \
-D ENABLE_SSE=OFF \
-D ENABLE_SSE2=OFF \
-D OPENCV_EXTRA_C_FLAGS="-DHAVE_VECLIB" \
"${OPENCV_ROOT}"
The test case has been compiled with following options:
- architecture: armv7 only
- compiler GCC4.2 (instead of llvm-gcc4.2)
- and linked against: opencv_core, opencv_imgproc, libz(from apple) and Accelerate(apple)
and has been tested on an ipod touch 4g
thanks for your attention,
Pierre
file link changed...
http://f1.grp.yahoofs.com/v1/YGWDTeTd9qbKhlRL6vsds5couhTkDWwLEnjqzdOSnJKGMW-Wj9HbYgcjRnj2actI-09jtHSPB7jm6oa0d1xWE2EuCOfkxw/ttttttt.jpg
left: Template "picture"
right: actual Picture and calculated homography shown as green lines
--- In OpenCV@yahoogroups.com, "aemmert1" <aemmert@...> wrote:
>
> Hi guys,
>
> i have a confusing problem with cv::findHomography.
> I try to find a template in an image(like the "locateplanarobject" in the find_obj.c opencv sample)
>
> My template has the same size as the image. I calculate SURF features, their descriptors and match them with flann, to find the template in the actual image(where the template is in lower scaled version). The best correspondences are then used to find the homographymatrix with cv::findHomography and RANSAC.
> After that i use the homography to calculate the destinationcorners from the sourcecorners(0,0 .. -> .. img.cols,img.rows) of the template. but the result i get is confusing an looks like this:
>
> http://f1.grp.yahoofs.com/v1/QGiCTQIflSEvu9BbaOvBvxwcu7h8xNoFoRBYFhYdoUPpoVZOSxoXiuGknToz5yiBeIUQ97q7g9978U8foRHd3mKGqorFNQ/ttttttt.jpg
>
> I also tried some transformation on the points before i calculate the homography, but i have the same result. it looks like there is a vanishing point at (0,0).
>
> The template and the image have a size of 480*640. The template in the image(which i want to find via surf etc.) is about 120*160.
>
> Maybe some1 had the same issue before and can tell me what's wrong.
>
> Thanks in advance for any help
> Aemmi
>
I am a beginner in OpenCV . I am using visual studio 2010. I have gone to the following link and do as it has been asked.http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010
But when I debug my project the following error with a black screen I have got.
The application was unable to start correctly (Ox000..)
Sexy Japanese Model Hot And Bikini Photo Gallery
http://fun-techs.blogspot.com/2011/03/cute-japanese-model-beautiful-and.html
*************
Scorpion Emergency Lamp Plus Radio
http://fun-techs.blogspot.com/2011/03/scorpion-emergency-lamp-plus-radio.html
*************
*************
Click Here For Sexy View LABELS
Hollywood Cute And Sexy Model Beautiful Photo Shoot
Hot Brazilian Fashion Model Bruna Hort Bikini Photo Shoot
Sexy Model Hot Kim Kardashian Bikini Photos In Beach
Hot Model Kim Kardashian Show Big Boobs Bikini Photos
Cute Hollywood Models Beautiful And Bikini Photo Shoot
Cute And Sweet Model Yumi Sugimoto Bikini Photos
Cute Asian Model Sun Yi Qi Beautiful And Bikini Photo Shoot
Hollywood Cute Most Sexy Models Bikini Photo Gallery
Cute Model Supaksorn Beautiful And Wet Bikini Photos
Cute Indian Actress Apsara Soni Hot And Bikini Photo Shoot
Cute Hollywood Hot Babes Beautiful And Bikini Photo Shoot
*************
Hot Babe Model Nikki Sexy Bikini Photo Shoot
http://fun-techs.blogspot.com/2011/03/cute-and-sweet-model-nikki-sanderson.html
*************
iPhone Become a Universal Remote with Beacon Smart Phone
http://fun-techs.blogspot.com/2011/03/iphone-become-universal-remote-with.html
*************
*************
Click Here For Sexy View LABELS
Hollywood Cute And Sexy Model Beautiful Photo Shoot
Hot Brazilian Fashion Model Bruna Hort Bikini Photo Shoot
Sexy Model Hot Kim Kardashian Bikini Photos In Beach
Hot Model Kim Kardashian Show Big Boobs Bikini Photos
Cute Hollywood Models Beautiful And Bikini Photo Shoot
Cute And Sweet Model Yumi Sugimoto Bikini Photos
Cute Asian Model Sun Yi Qi Beautiful And Bikini Photo Shoot
Hollywood Cute Most Sexy Models Bikini Photo Gallery
Cute Model Supaksorn Beautiful And Wet Bikini Photos
Cute Indian Actress Apsara Soni Hot And Bikini Photo Shoot
Cute Hollywood Hot Babes Beautiful And Bikini Photo Shoot
*************
Sweet Model Nikki Sexy Bikini Photo Shoot In Bed
http://fun-techs.blogspot.com/2011/03/hollywood-sweet-model-nikki-sanderson.html
*************
Canon SD4500 IS Beautiful Digital Camera
http://fun-techs.blogspot.com/2011/03/canon-sd4500-is-beautiful-digital.html
*************
*************
Click Here For Sexy View LABELS
Hollywood Cute And Sexy Model Beautiful Photo Shoot
Hot Brazilian Fashion Model Bruna Hort Bikini Photo Shoot
Sexy Model Hot Kim Kardashian Bikini Photos In Beach
Hot Model Kim Kardashian Show Big Boobs Bikini Photos
Cute Hollywood Models Beautiful And Bikini Photo Shoot
Cute And Sweet Model Yumi Sugimoto Bikini Photos
Cute Asian Model Sun Yi Qi Beautiful And Bikini Photo Shoot
Hollywood Cute Most Sexy Models Bikini Photo Gallery
Cute Model Supaksorn Beautiful And Wet Bikini Photos
Cute Indian Actress Apsara Soni Hot And Bikini Photo Shoot
Cute Hollywood Hot Babes Beautiful And Bikini Photo Shoot
*************