how can I remove irrelevant points that they have been extracted with vl_sift from an image?2019 Community Moderator ElectionHow to remove outliers?Neighbors of specific segment in a segmented imageHow to estimate/determine surface normals and tangent planes at points of a depth image?Finding Local peaks and troughs in a Time Series using MatlabHow to compute Gibbs energy in 2D image from a clear exampleUsing the “find” command to accumulate values “without for loops”How to extract desired points from graph and calculate distance between them in MATLAB?How to indicate different groups of connected points/nodes(2D plane)?How to use GPU for extracting patches from imagesMatlab: Find next lesser floating point number
Does the US political system, in principle, allow for a no-party system?
Drawing the Möbius band and the Klein bottle
Do natural melee weapons (from racial traits) trigger Improved Divine Smite?
Does the in-code argument passing conventions used on PDP-11's have a name?
How to make sure I'm assertive enough in contact with subordinates?
I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?
Preparing as much as possible of a cake in advance
Should I use HTTPS on a domain that will only be used for redirection?
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
Why are special aircraft used for the carriers in the United States Navy?
PTiJ: How should animals pray?
What is the purpose of a disclaimer like "this is not legal advice"?
“I had a flat in the centre of town, but I didn’t like living there, so …”
Are angels creatures (Mark 16:15) and can they repent (Rev 2:5 and Rom 8:21)
Is every open circuit a capacitor?
Is "cogitate" an appropriate word for this?
Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?
Paper published similar to PhD thesis
Why do we call complex numbers “numbers” but we don’t consider 2 vectors numbers?
I can't die. Who am I?
Is being socially reclusive okay for a graduate student?
How spaceships determine each other's mass in space?
How can friction do no work in case of pure rolling?
Who is at the mall?
how can I remove irrelevant points that they have been extracted with vl_sift from an image?
2019 Community Moderator ElectionHow to remove outliers?Neighbors of specific segment in a segmented imageHow to estimate/determine surface normals and tangent planes at points of a depth image?Finding Local peaks and troughs in a Time Series using MatlabHow to compute Gibbs energy in 2D image from a clear exampleUsing the “find” command to accumulate values “without for loops”How to extract desired points from graph and calculate distance between them in MATLAB?How to indicate different groups of connected points/nodes(2D plane)?How to use GPU for extracting patches from imagesMatlab: Find next lesser floating point number
I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5.
I = single(imread('cameraman.tif'));
[f,d] = vl_sift(I);
for r =1:size(f,2)
x = abs(round(f(1,r)-f(1,:)));
y = abs(round(f(2,r)- f(2,:)));
[xx,indxx] = find(x<=20 & y<=20)
end
matlab for-loop vlfeat
add a comment |
I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5.
I = single(imread('cameraman.tif'));
[f,d] = vl_sift(I);
for r =1:size(f,2)
x = abs(round(f(1,r)-f(1,:)));
y = abs(round(f(2,r)- f(2,:)));
[xx,indxx] = find(x<=20 & y<=20)
end
matlab for-loop vlfeat
This can probably be done without a loop. Please provide a complete example in code, with actual inputs and desired output (and then I will happily remove my downvote)
– Luis Mendo
yesterday
Each iteration of your loop overwritesx,y,xx, andindxx, thus after finishing you'll only have the results forr = 150. If you want to have all results persistent, save them properly in a cell array as you'll encounter varying lengths forxxandindxx,
– HansHirse
yesterday
add a comment |
I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5.
I = single(imread('cameraman.tif'));
[f,d] = vl_sift(I);
for r =1:size(f,2)
x = abs(round(f(1,r)-f(1,:)));
y = abs(round(f(2,r)- f(2,:)));
[xx,indxx] = find(x<=20 & y<=20)
end
matlab for-loop vlfeat
I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5.
I = single(imread('cameraman.tif'));
[f,d] = vl_sift(I);
for r =1:size(f,2)
x = abs(round(f(1,r)-f(1,:)));
y = abs(round(f(2,r)- f(2,:)));
[xx,indxx] = find(x<=20 & y<=20)
end
matlab for-loop vlfeat
matlab for-loop vlfeat
edited yesterday
soloist
asked yesterday
soloistsoloist
23
23
This can probably be done without a loop. Please provide a complete example in code, with actual inputs and desired output (and then I will happily remove my downvote)
– Luis Mendo
yesterday
Each iteration of your loop overwritesx,y,xx, andindxx, thus after finishing you'll only have the results forr = 150. If you want to have all results persistent, save them properly in a cell array as you'll encounter varying lengths forxxandindxx,
– HansHirse
yesterday
add a comment |
This can probably be done without a loop. Please provide a complete example in code, with actual inputs and desired output (and then I will happily remove my downvote)
– Luis Mendo
yesterday
Each iteration of your loop overwritesx,y,xx, andindxx, thus after finishing you'll only have the results forr = 150. If you want to have all results persistent, save them properly in a cell array as you'll encounter varying lengths forxxandindxx,
– HansHirse
yesterday
This can probably be done without a loop. Please provide a complete example in code, with actual inputs and desired output (and then I will happily remove my downvote)
– Luis Mendo
yesterday
This can probably be done without a loop. Please provide a complete example in code, with actual inputs and desired output (and then I will happily remove my downvote)
– Luis Mendo
yesterday
Each iteration of your loop overwrites
x, y, xx, and indxx, thus after finishing you'll only have the results for r = 150. If you want to have all results persistent, save them properly in a cell array as you'll encounter varying lengths for xx and indxx,– HansHirse
yesterday
Each iteration of your loop overwrites
x, y, xx, and indxx, thus after finishing you'll only have the results for r = 150. If you want to have all results persistent, save them properly in a cell array as you'll encounter varying lengths for xx and indxx,– HansHirse
yesterday
add a comment |
1 Answer
1
active
oldest
votes
Try this:
% Input.
f = 50 * rand(2, 150);
% Initialize output.
xx = cell(1, size(f, 2));
indxx = cell(1, size(f, 2));
% Calculate output.
for r = 1:size(f, 2);
x = abs(round(f(1, r) - f(1, :)));
y = abs(round(f(2, r) - f(2, :)));
[xxr, indxxr] = find(x <= 20 & y <= 20);
end
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
@soloist I'm afraid, I don't understand your question.indxxrwill store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are severalindxxrwithnumel(indxxr) > 5.
– HansHirse
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
.I edited my question
– soloist
yesterday
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55023032%2fhow-can-i-remove-irrelevant-points-that-they-have-been-extracted-with-vl-sift-fr%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this:
% Input.
f = 50 * rand(2, 150);
% Initialize output.
xx = cell(1, size(f, 2));
indxx = cell(1, size(f, 2));
% Calculate output.
for r = 1:size(f, 2);
x = abs(round(f(1, r) - f(1, :)));
y = abs(round(f(2, r) - f(2, :)));
[xxr, indxxr] = find(x <= 20 & y <= 20);
end
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
@soloist I'm afraid, I don't understand your question.indxxrwill store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are severalindxxrwithnumel(indxxr) > 5.
– HansHirse
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
.I edited my question
– soloist
yesterday
add a comment |
Try this:
% Input.
f = 50 * rand(2, 150);
% Initialize output.
xx = cell(1, size(f, 2));
indxx = cell(1, size(f, 2));
% Calculate output.
for r = 1:size(f, 2);
x = abs(round(f(1, r) - f(1, :)));
y = abs(round(f(2, r) - f(2, :)));
[xxr, indxxr] = find(x <= 20 & y <= 20);
end
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
@soloist I'm afraid, I don't understand your question.indxxrwill store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are severalindxxrwithnumel(indxxr) > 5.
– HansHirse
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
.I edited my question
– soloist
yesterday
add a comment |
Try this:
% Input.
f = 50 * rand(2, 150);
% Initialize output.
xx = cell(1, size(f, 2));
indxx = cell(1, size(f, 2));
% Calculate output.
for r = 1:size(f, 2);
x = abs(round(f(1, r) - f(1, :)));
y = abs(round(f(2, r) - f(2, :)));
[xxr, indxxr] = find(x <= 20 & y <= 20);
end
Try this:
% Input.
f = 50 * rand(2, 150);
% Initialize output.
xx = cell(1, size(f, 2));
indxx = cell(1, size(f, 2));
% Calculate output.
for r = 1:size(f, 2);
x = abs(round(f(1, r) - f(1, :)));
y = abs(round(f(2, r) - f(2, :)));
[xxr, indxxr] = find(x <= 20 & y <= 20);
end
answered yesterday
HansHirseHansHirse
34312
34312
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
@soloist I'm afraid, I don't understand your question.indxxrwill store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are severalindxxrwithnumel(indxxr) > 5.
– HansHirse
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
.I edited my question
– soloist
yesterday
add a comment |
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
@soloist I'm afraid, I don't understand your question.indxxrwill store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are severalindxxrwithnumel(indxxr) > 5.
– HansHirse
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
.I edited my question
– soloist
yesterday
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
thank for your help.if Iwant to store indxx with numel > 5,how can do this?
– soloist
yesterday
@soloist I'm afraid, I don't understand your question.
indxxr will store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are several indxxr with numel(indxxr) > 5.– HansHirse
yesterday
@soloist I'm afraid, I don't understand your question.
indxxr will store vectors (or whatever) of arbitrary size since it's a cell array. In my artificial example, there are several indxxr with numel(indxxr) > 5.– HansHirse
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
In order to better understand, I will briefly explain what I want to do.I have an image and extract from it a number of points by using vl_sift function.I want to remove irrelevant points.To do this, I want to first calculate the distance from each point of all points And then the point where the number of neighbors in the interval considered as a condition, if more than 5 is considered as a suitable point and remove points with a neighborhood of less than 5
– soloist
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
@soloist For me, it's still hard to understand, what you want to achieve. If this is still related to your original question, please update, and provide sample images. Otherwise, you should post a new question, and provide further details and sample images there.
– HansHirse
yesterday
.I edited my question
– soloist
yesterday
.I edited my question
– soloist
yesterday
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55023032%2fhow-can-i-remove-irrelevant-points-that-they-have-been-extracted-with-vl-sift-fr%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This can probably be done without a loop. Please provide a complete example in code, with actual inputs and desired output (and then I will happily remove my downvote)
– Luis Mendo
yesterday
Each iteration of your loop overwrites
x,y,xx, andindxx, thus after finishing you'll only have the results forr = 150. If you want to have all results persistent, save them properly in a cell array as you'll encounter varying lengths forxxandindxx,– HansHirse
yesterday