Matching two distinct images with similar SURF features matlab - matlab

We are working upon gesture to text conversion using matlab and want the input gesture from user to be mapped with a predefined database. Using detectsurffeatures function, we extract the features, but proper matching is not taking place unless input is a part of the reference image
How to map the features the pairs like...
input hand and database
We are not getting any error, yet the images are not mapped.
Please suggest a solution.

Related

find all graphic objects that have a spesific word in their handle (even if it is part of the full name of the handle)

I am trying to find all the color-related graphic objects of a general matlab figure.
For example, if I look at
polarplot(rand(4))
h=gca;
I find that it has the handles Color , RColor, ThetaColor, etc, as well as in its children, for example, h.Children(1).Color, h.Children(1).MarkerEdgeColor, etc...
Is there an efficient way to find all these according to word Color when using findobj \ findall or a similar function with some type of regex?

Is there a function to select and show certain features only in print composer?

I have a feature layer with points. I have three pages in my print composer. On one of my pages, I only want to show points that fall within a certain value range. First, I tried locking the style on the pages where I want to display all my points.
Then, I went to the Query Builder of the layer I want to select points from, and I created an expression to display only points from a range:
The problem is that this selection modifies the points shown on all my pages in print composer, even the ones where I locked the layers and style for layers. The only alternative solution I can think of is to select the points I want to show, create a new feature layer with those selected points, and then show that feature layer on my page in print composer. However I'd like to know if there's another way to do this without creating a new feature layer each time I want to filter the points I show in print composer.
There's another way. The points change because when you define a query, basically you define what features will be loaded to the project. So if you use categorized symbology you can define that some feature will be not displayed, but they will stay loaded in the project.
Here you can find how to use this type of symbology: Classifying Nominal Data

Creating custom image filter for flutter application

I kind of reverse engineered an image filter. Actually it was just a pixel by pixel operation so I applied it over different images and by comparing each pixel of original image and filtered image (using PIL) I now know what RGB value from original image became what RGB in the filtered image. For example like RGB(0,0,1) became RGB(2,3,81) (suppose) etc and I know this for all 16,777,216 colors.
If what I did is correct then my question is how can I create a filter out of this data that can be used in flutter apps. One option is to use conditional statements but that's just theoretical as I'll have to manually write 16,777,216 statements just for this one filter. So is there any software or program or code or anything else that I can use to create a filter out of this data that can be used in flutter apps. This is important because ultimately I want to use this filter in my flutter app.
Any help would be much appreciated.
Thank you very much.

Filtering polygons based on text input in mapbox

I'm trying to work out a variation on the mapbox code provided in this tutorial here: https://docs.mapbox.com/mapbox-gl-js/example/filter-markers-by-input/
But instead of filtering individual points, I'm trying to figure out how to filter polygons from a GeoJSON that have names appended based on an integer feature. Basically, I want to be able to enter the appended name of a polygon into a text box and have the map filter to just that polygon. I'm having difficulty identifying which parts of the code in the example to isolate and graft over. Has anyone tried something like this before?
When you say "filter to just that polygon", I think what you mean (in geospatial terms) is "filter to show only points within that polygon".
You will want to use Turf's "booleanWithin" function.
You will want to change this code:
layerIDs.forEach(function(layerID) {
map.setLayoutProperty(layerID, 'visibility',
layerID.indexOf(value) > -1 ? 'visible' : 'none');
});
You will have to iterate over the points themselves (not just their IDs), and use the booleanWithin function to check whether the point is within the polygon that you have somewhere else loaded.

How to get region of interest in images

I need to train R-CNN on my dataset. Above Image is an example in which first column contain path to that image and second column contain coordinates of bounded box(ROI). How to get those coordinates in matlab. As my dataset is large so how those coordinates can be extracted by pointing manually.
for example if i am training R-CNN foe stop signs then second column contain coordinates of bounded box containing stop sign in whole image.
I do not know which version of MATLAB you are running, but I'm assuming it is fairly new (R2017a and later). Also, by 'how to get the coordinates', I assume you mean 'how to determine' or 'how to assign' the coordinates.
I believe what you need to do is to use one of the image labeling Apps called
imageLabeler
to annotate rectangles in your training images. You either do this manually if that's amenable, or you need to use automation algorithms if you already have a detector that does something similar. See this page for more details:
https://www.mathworks.com/help/vision/ug/create-and-import-an-automation-algorithm-for-ground-truth-labeling.html
Once you have the results of labeling stored in a groundTruth object, you would need to use something like objectDetectorTrainingData to create the table you are looking for.
See https://www.mathworks.com/help/vision/ug/train-an-object-detector-from-ground-truth-data.html for more details.