Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

Inverse image transform

asked 7 years ago

MathMan42 gravatar image

Does Sage have an inverse image transform?

By that, I mean is there a function where, given an image X, and function f, it generates an image Y, such that pixel p of Y is assigned the color of f(p)X?

Note that for convenience, you can also say what rectangle the input and output image represent. (I.e. you could say that pixels in Y correspond to points in [1,1]×[1,1].

For reference, here is mathematica's version is called ImageTransformation.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

slelievre gravatar image

The Python Image Library is shipped by Sage in the form of the PIL package.

Then your question becomes how to do image transformation with PIL.

A quick web search:

reveals

where there is a link to:

Using certain functions in PIL might require the presence of a jpeg library in your system, otherwise you might get error messages such as "decoder jpeg not available". See

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 543 times

Last updated: Mar 21 '18