Skip to content

Applying a formula to an image (Curves... again) #7317

Discussion options

You must be logged in to vote

So using your formula with snibgo's method on the lena gray image, I get

magick lena_gray.png -fx "uu=u*100; (4.034e-04*uu*uu*uu -4.908e-02*uu*uu + 1.777*uu + 1.913e-01)/100" lena_gray_cubic.png

You could also use uu^3 in place of uuuuuu. Similarly for uu^2 in place of uu*uu. I am not sure which would be faster.

Replies: 9 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@Build-0-Matic
Comment options

@fmw42
Comment options

Comment options

You must be logged in to vote
1 reply
@Build-0-Matic
Comment options

Comment options

You must be logged in to vote
4 replies
@Build-0-Matic
Comment options

@fmw42
Comment options

@Build-0-Matic
Comment options

@Build-0-Matic
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Build-0-Matic
Comment options

@fmw42
Comment options

Answer selected by Build-0-Matic
@Build-0-Matic
Comment options

@fmw42
Comment options

@Build-0-Matic
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fmw42
Comment options

@fmw42
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants