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










-2















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









share|improve this question
























  • 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
















-2















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









share|improve this question
























  • 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














-2












-2








-2








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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

















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













1 Answer
1






active

oldest

votes


















0














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





share|improve this answer























  • 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












  • 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










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
);



);













draft saved

draft discarded


















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









0














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





share|improve this answer























  • 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












  • 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















0














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





share|improve this answer























  • 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












  • 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













0












0








0







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





share|improve this answer













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






share|improve this answer












share|improve this answer



share|improve this answer










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. 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











  • @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











  • @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











  • @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



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page