Comments (8)
I got it, thank you very much for your patient explanation.
from affnet.
Yes, you are right. But.
- remember that sigma1 then is multiplied by coef. of the current octave. E.g. if octave is 2x downscaled. then coef is 2
- Moreover, for description, there is "measurement region scale" mrScale, typically equal to 3sqrt(3) or 5:
http://cmp.felk.cvut.cz/~chum/papers/perdoch-cvpr09.pdf
from affnet.
remember that sigma1 then is multiplied by coef. of the current octave. E.g. if octave is 2x downscaled. then coef is 2
the coef is 1.0/2 or 2 ? for example, the content range covered by a pixel in one image from octave 2 is equal to the content range covered by 2*2 pixels in octave 1. So, the coef is should be equal to 1/2?
Moreover, for description, there is "measurement region scale" mrScale, typically equal to 3sqrt(3) or 5:
So, ( assume that 0 is the original image size, no downsampling), the measurement region scale
in the octave N is larger N times than the one of 0th octave image, in terms of image content?
from affnet.
@yunyundong Lets do the example.
Say, on level 0 octave 0 we have feature location (x,y). Default init_sigma is 1.6, so is it our sigma.
Therefore ScaleSpaceAffinePatchExtractor, if no orientation/affine module is used, would output following LAF:
[mr_region_scale * sigma, 0, x;
0, mr_region_scale * sigma, y] =
[8.31, 0, x;
0, 8.31, y]
So our patch in term of image content would correspond to circle with diameter 2 * 8.31 = 16.62 px. Which is then resized to PS, 32x32 by default.
If we have level 0, octave 1 at feature location (x,y), then LAF would be:
[2 * mr_region_scale * sigma, 0, x;
0, 2 * mr_region_scale * sigma, y]
If we have level 1 or level 2, then radius would be a bit larger according to
Line 39 in 7b57978
from affnet.
I can get your example. What I want to say is as follows:
for level 0 in octave 0, the diameter is 2* 8.31=16.62 px
for level 0 in octave 1, the diameter is 2 * 3sqrt(3)*1.6 =16.62px (assume mr_region_sacle=3sqrt(3);)
Now, the image content covered by the region with diameter 16.0 pixel from level 0 in octave 1 is two larger than the image content covered by the region with diameter 16.62 . Because the octave is downsampled from octave 0 .
the coef 2 should be 1/2 so that the region from different octaves represent the same image content.
another example: a original image with size 6464 px, after downsample operation, it wil becom 3232 ->1616-> 88-> 44. Now , can I say the 44 image represent the same content range as the original 64*64 original image?
from affnet.
@yunyundong Yes, you can say it.
Regarding coefficient, I think, you are wrong. Inside the octave, it is always one. Octave is downsampled, we don`t need to account for it. But coefficient is 2 if you want to have go from "radius in octave image" to "radius in original image".
And yes, if you go other way round - to calculate "radius in octave" from "radius in original", then it is 1/2
from affnet.
In fact, I also suspect I am wrong. So, I am only curious that when the index of octave become larger, the region clipped to resample to ps*ps also becomes larger.
from affnet.
@yunyundong Yes, exactly.
from affnet.
Related Issues (20)
- nmsed_resp HOT 6
- Comparison to vl_covdet() HOT 1
- AffNetFastFullAff architecture missing HOT 2
- Is the experiments of Oxford Dataset retrieval task using BoW available? HOT 3
- Does the hardnet part need to retrain after affnet part finished? HOT 6
- Question about evaluating the model on roxford dataset HOT 11
- Aligning 2 images using affnet HOT 8
- why the validation of handcrafted Baumberg Iteration runs without orientation HOT 2
- Some suggestions for the people to visit HOT 3
- About AffNet training(Fig.5) HOT 2
- About train_OriNet_test_on_graffity.py HOT 1
- RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
- About the version of the python and pytorch HOT 2
- How to get feature's scale and orientation HOT 7
- get keypoints HOT 1
- RuntimeError: [enforce fail at CPUAllocator.cpp:47] HOT 4
- How to get
- How to get the A matrixs which satisfies the Geometric constraints condition EP=-AEP? HOT 7
- About the AFFNET HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from affnet.