Jump to content
You must now use your email address to sign in [click for more info] ×

Filters > Distort> Equations Noise()


Recommended Posts

WARNING: for the technically-minded only!

The Noise functions in the Filters > Distort> Equations facility are supposed to add (unspecified) noise to an image. The only description I can find of this is in the video by James Ritson. He first duplcates the layer and then uses either noise(x*y)*a or noise4(x*y)*a in his equation. This produces a grain-like effect over his image.

The documentation for equations is limited. There is the Expressions for field input in the Help system which gives, under : Noise(seed/x,y), an explanation:  

Generate 1D noise either from a seed or based on X/Y input

 with similar definitions for noise2, noise3 and noise4.

James uses both the noise and the noise4 functions. In his video he is using the single seed parameter x*y, with the magnitude controlled by the a parameter. 

I have been experimenting with these noise functions and present here my findings

  • Although the Expressions for field input names the functions Noise ... Noise4, with a capital letter, these will not work. You need to use a lower case n for noise.
  • The function noise2 has no effect.
  • The functions noise, noise3 and noise4 seem to produce identical visible results. The histograms are also identical.
  • Using a single parameter, either a simple number, or an expression such as x*y, has no visible effect unless the Full option is selected in the Extend Mode at the bottom.
  • When using two parameters, they need to be different in the x and y axes to produce any visible result.
  • Multiplying the parameters by a number, such as noise(10x,10y), has no visible effect.

I show here the effect of varying these parameters on a simple gradient field:

1435089786_NoiseBase.png.f1d0fc193031041429f7da9a62eb57a9.png

Here is the effect of x=noise(x,y) and y=noise(y,x):

235095600_Noisexyyx.png.364be50f161db3312182576ecad86b73.png

The results for noise3 and noise4 are identical, as are noise(3x,3y) etc as are the histograms.

If the parameters are the same, say x=noise(x,x) and y=noise(y,y) You get a very different effect:1546280027_Noisexxyy.png.b2b7916ac51f50db77d343cc46aabd0a.png 

Almost like a tartan effect.

If the noise functions are the same in both x and y such as x=noise(x,y) and y=noise(x,y), it works OK, but if you use x=noise(y,x) and y=noise(y,x) there is no visible effect unless you select Full:

30629963_NoiseyxyxFull.png.b90d860d3245fdba1e40d5ea3cd79c84.png

The difference between using Zero and Full in the Extend Mode at the bottom is subtle. Using Full seems to convert the image into a monochrome effect with the background invisible. However, the noise is based on the luminance of the background.

Just for comparison, I append here the effect of the effect of the Add Noise filter (Filter > Noise > Add Noise...):

159267843_AddNoise50pc.png.ac00aca96d956ea944c5639c961c9847.png

You can control the intensity of the noise here, which is more than you can in any of the noise functions I have described.

In conclusion, I would recommend that if you want noise, then use the Filter > Noise > Add Noise... option above until such time as the devs at Serif come up with a more understandable noise function in Equations. Having said that I am not holding my breath on this. Using noise in equations is probably a minority pursuit amongst users and the Add Noise filter is much easier.

John

 

 

 

Noise 10xy 10yx.png

Noise xxy yyx.png

Noise xy xy.png

Noise yx yx.png

Noise3 xy yx.png

Noise4 xy yx.png

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Link to comment
Share on other sites

  • 1 month later...

This is really a very interesting Filter. Is there a listing available where are all possibilities listed?
I think there are much more possibilties than only noise and twirl or not?

Have a nice day.
Ich wünsche einen schönen Tag.

Link to comment
Share on other sites

4 minutes ago, Uwe367 said:

This is really a very interesting Filter. Is there a listing available where are all possibilities listed?
I think there are much more possibilties than only noise and twirl or not?

I take it you are referring to Filters > Distort > Equations. You need to look in the Help system for ''Field Expressions'. It includes all the standard arithmetic, algebraic  and trigonometric expressions. You can use these in any context where you might input a number, such as Document > Resize, where you could put 50% or *0.5 or even sqrt(w). (w is the width.)

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Link to comment
Share on other sites

8 minutes ago, John Rostron said:

You need to look in the Help system for ''Field Expressions'.

Expressions for field input

The online Help has yet to be corrected. It currently says

/2	Divide by a half.

when it should explain ‘/2’ as either ‘Divide by two’ or, less obviously, ‘Multiply by a half’.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

1 minute ago, John Rostron said:

I take it you are referring to Filters > Distort > Equations. You need to look in the Help system for ''Field Expressions'. It includes all the standard arithmetic, algebraic  and trigonometric expressions. You can use these in any context where you might input a number, such as Document > Resize, where you could put 50% or *0.5 or even sqrt(w). (w is the width.)

John

Thanks John and Alfred.
Yes, i mean this Filter.

Have a nice day.
Ich wünsche einen schönen Tag.

Link to comment
Share on other sites

Helpful. Thanks John. Nice presentation of findings, too.

Further playing:

  • Polar, r blank, t=noise(a,b) gives circles using image colours
    • Could be good as a background frame for actual image (use non-zero Extend Mode)
  • Polar, r blank, t=noise(r,r) gives interesting dotty spacey circly thing (umm)
  • Cartesian, x=a*max(x,y), y=b*min(x,y) gives diagonal flip.

Oh dear. I see hours of pointless fun ahead...

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

16 hours ago, dmstraker said:

Oh dear. I see hours of pointless fun ahead

Don't tempt me!

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.