YOUR ACCOUNT

Login or Register to post new topics or replies
JenniferK
Posts: 26
I know you can plug a curve into a gradient profile to determine how light or dark each part of it is, but can you extract a curve fr om a gradient? Wh ere the resulting curve isn't affected by the gradient details (that is, type, orientation, etc) and just reflects the light to dark "rules" it follows?

For example, lets say I multiplied a profile gradient by a slider value. Is there a way to see the what a an input curve (that would produce the same results) would look like?

  Details E-Mail
emme
Posts: 718
Filters: 8
You can write a curve script that samples the input image along the gradient coordinates to extract the gradient profile curve. The gradients starting / ending points + the gradient type inputs are needed to calculate the correct sample coordinates.

Uniform processing (like add, multiply, contrast, gamma etc.) can be applied to the gradient image and the resulting curve will reflect those changes correctly.

I'm not sure if this will actually be useful for anything, but anyway here is an example script smile:)

gradient_curve_extract_v001.ffxml
  Details E-Mail
David Roberson
Artist
Posts: 404
Filters: 36
Quote
I'm not sure if this will actually be useful for anything, but anyway here is an example script smile:)

gradient_curve_extract_v001.ffxml


Is this fr om FF11? If it's FF10, I can open it, but if it's from FF11 would you be willing to post the code so I can try this out in FF9? Edit: Nevermind, I realized the script code is contained readably in the .ffxml, so I've gotten a look at it. I do wonder what change is necessary to have the entire image sample expressed in the curve. I realize that you'd essentially end up with a copy of the image, but there are instances wh ere the point would be to capture the image in curve form, so the curve could be used to make complex shape profiles.
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

25 unregistered users.