Comments (2)
Hello, the similarity function performs translation, rotation and scaling of the template image. Those operations generally require interpolation, so it makes perfect sense that the result is an array of floating point numbers. Imagine the simplest operation s.a. shifting 0.5 pixels in one direction --- the shifting algorithm has to guess what values correspond to the location where two pixels meet. If the algorithm is allowed to perform e.g. cubic interpolation, the guessed value is likely to be a non-integer, although all pixel values are integers.
This approach gives you freedom on how to deal with interpolation --- you may keep the float numbers, or you can cast them back to integers.
Anyway, the code you are interested in is the transform_img function.
from imreg_dft.
I should have realized the interpolation from the zoom function as converting to floats. Thank you!
from imreg_dft.
Related Issues (20)
- Investigate image registration on complex arrays HOT 1
- Memory issue HOT 1
- Discrepancy in command line utility (ird) and python function (similarity)
- transform_img clips image, doesn't have option to specify output size HOT 2
- Error defining mask in utils.py HOT 1
- Multichannel Images HOT 3
- Using tiles in image registration HOT 1
- How to convert padded border of transformed image to black HOT 1
- Image is shifted out of frame
- I think this should say anticlockwise instead of clockwise
- sample PNGs for LargeTemplate [tiling] example do not open with Pillow 7.2
- installation
- Pixel values are changed after registration.
- how to uninstall imreg_dft
- [Need Help] What's that FILE OBJECT?
- [Help needed] Different shape images
- np.bool deprecated in utils.get_borderval( )
- Please update your release that the np.bool change reflects in the download HOT 1
- Nothing runs.
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 imreg_dft.