Code Monkey home page Code Monkey logo

Comments (5)

omaraltayyan avatar omaraltayyan commented on September 4, 2024

@Celebrandil can you please take some of your time to answer, sorry to insist but i gotta use this in my school project which is only a few weeks away

from cudasift.

Celebrandil avatar Celebrandil commented on September 4, 2024

Do you have an image illustrating the problem? SIFT features are often found in the weirdest of places.

from cudasift.

omaraltayyan avatar omaraltayyan commented on September 4, 2024

@Celebrandil
here is a video i made to illustrate the problem:

https://youtu.be/ine41zFnmpk

this is the code used for drawing

image.convertTo(image, CV_8UC1);
for (int i = 0; i < imageSiftData.numPts; i++)
{
	SiftPoint siftPoint = imageSiftData.h_data[i];
	Point2f pointToDraw(siftPoint.xpos, siftPoint.ypos);

	cv::circle(image, pointToDraw, 3, Scalar(0, 0, 0), 2);
}

and this is the keypoint detection code:

	image.convertTo(convertedImage, CV_32FC1);
        image = convertedImage;
	CudaImage cudaImage;
	unsigned int imageWidth = image.cols;
	unsigned int imageHeight = image.rows;


	cudaImage.Allocate(imageWidth, imageHeight, iAlignUp(imageWidth, 128), false, NULL, (float*)image.data);
	cudaImage.Download();

	// Extract Sift features from image
	SiftData imageSiftData;
	float initBlur = 1.0f;
	float thresh = 1.0f;
	InitSiftData(imageSiftData, 4096, true, true);

	ExtractSift(imageSiftData, cudaImage, 5, initBlur, thresh, 0.0f, false);

from cudasift.

Celebrandil avatar Celebrandil commented on September 4, 2024

I fail to see what the problem might be. It indeed looks like as if the coordinates are scaled up by a factor of two.

from cudasift.

lgalardini avatar lgalardini commented on September 4, 2024

Hi there, this problem have been fixed? Is this the correct way to extract keypoints? Thank you in advance and have a nice day!

P.S. = thank you for your work and sharing!

from cudasift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.