Comments (4)
Hi! I'm currently investigating your code and looking forward to contribute to it. But I can't understand, should those functions with FixedPointType
as an argument always return OffsetArray
? To me it feels like yes, otherwise it would be either a matrix with many empty values in it or with truncated values because of negative indices, except when that point is [1, 1]
. Could you clear it out for me, am I wrong?
from imagetransformations.jl.
But I can't understand, should those functions with FixedPointType as an argument always return OffsetArray?
Yes, I think OffsetArray
is the simplest model to reason about without loss of any information. People who are interested in 1-based array type can always combine the output OffsetArray
with PaddedArray
. For example, layer composition is a simple demo of such composition.
This is also why we have to set p::FixedPointType
as a positional argument; if we set it as a keyword argument, which does not participate in method dispatch, there will be type instability between Array
and OffsetArray
.
from imagetransformations.jl.
Actually, I think the fixed point concept can be introduced to imrotate as well, in which case it's normally understood as the rotation center.
from imagetransformations.jl.
Yes, I think OffsetArray is the simplest model to reason about without loss of any information.
Alright, I got it. Should be easy enough.
Actually, I think the fixed point concept can be introduced to imrotate as well, in which case it's normally understood as the rotation center.
Yeah, it totally makes sense.
from imagetransformations.jl.
Related Issues (20)
- Does ForwardDiff work with ImageTransformations? HOT 3
- demo: grid stretching and elastic transformation
- add swirl function HOT 1
- Images getting generated differently HOT 4
- No stable version document is deployed HOT 6
- Add `Projective` transformation HOT 2
- Demos using CoordinateTransformations and Rotations
- Repeated warping HOT 6
- `imrotate(img, pi/2)` changes size of image HOT 3
- Clarification of rotations HOT 7
- Rotation operation is inaccurate HOT 2
- Custom image transformation? HOT 4
- imresize without interpolation for integer upscaling
- imflip function
- The reference frame associated to an image is not the best one to perform a shear transformation HOT 6
- Support for autodiff in warping?
- Support v0.15 of Interpolations.jl HOT 1
- Warp seems to be off HOT 1
- Add docs for imresize!
- Cropping after warp 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 imagetransformations.jl.