Skip to content

Is a linear transform on an Image supposed to be applied in place? #1011

Answered by marcomusy
baba-yaga asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks - I just fixed it in the master.

from vedo import *

img = Image(dataurl+"images/dog.jpg").alpha(0.75)
img1 = img.clone()
img1.scale(0.25)
img1.shift(-100, -100, 100)
show(img, img1, axes=1).close() 

img = Image(dataurl+"images/dog.jpg").alpha(0.75)
img1 = img.clone()
img1.scale(0.25)
img2 = img1.clone()
img2.shift(-100, -100, 100)
show(img, img2, axes=1).close() 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcomusy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants