Blender V4.3
gabor.h File Reference

Go to the source code of this file.

Macros

#define IMPULSES_COUNT   8
 

Functions

ccl_device float2 compute_2d_gabor_kernel (float2 position, float frequency, float orientation)
 
ccl_device float compute_2d_gabor_standard_deviation ()
 
ccl_device float2 compute_2d_gabor_noise_cell (float2 cell, float2 position, float frequency, float isotropy, float base_orientation)
 
ccl_device float2 compute_2d_gabor_noise (float2 coordinates, float frequency, float isotropy, float base_orientation)
 
ccl_device float2 compute_3d_gabor_kernel (float3 position, float frequency, float3 orientation)
 
ccl_device float compute_3d_gabor_standard_deviation ()
 
ccl_device float3 compute_3d_orientation (float3 orientation, float isotropy, float4 seed)
 
ccl_device float2 compute_3d_gabor_noise_cell (float3 cell, float3 position, float frequency, float isotropy, float3 base_orientation)
 
ccl_device float2 compute_3d_gabor_noise (float3 coordinates, float frequency, float isotropy, float3 base_orientation)
 
ccl_device_noinline int svm_node_tex_gabor (KernelGlobals kg, ccl_private ShaderData *sd, ccl_private float *stack, uint type, uint stack_offsets_1, uint stack_offsets_2, int offset)
 

Macro Definition Documentation

◆ IMPULSES_COUNT

Function Documentation

◆ compute_2d_gabor_kernel()

ccl_device float2 compute_2d_gabor_kernel ( float2 position,
float frequency,
float orientation )

Definition at line 58 of file gabor.h.

References cosf, dot(), expf, M_PI_F, make_float2(), and sinf.

Referenced by compute_2d_gabor_noise_cell().

◆ compute_2d_gabor_noise()

ccl_device float2 compute_2d_gabor_noise ( float2 coordinates,
float frequency,
float isotropy,
float base_orientation )

Definition at line 149 of file gabor.h.

References compute_2d_gabor_noise_cell(), floor(), make_float2(), and sum().

Referenced by svm_node_tex_gabor().

◆ compute_2d_gabor_noise_cell()

ccl_device float2 compute_2d_gabor_noise_cell ( float2 cell,
float2 position,
float frequency,
float isotropy,
float base_orientation )

◆ compute_2d_gabor_standard_deviation()

ccl_device float compute_2d_gabor_standard_deviation ( )

Definition at line 98 of file gabor.h.

References IMPULSES_COUNT, and sqrtf.

Referenced by svm_node_tex_gabor().

◆ compute_3d_gabor_kernel()

ccl_device float2 compute_3d_gabor_kernel ( float3 position,
float frequency,
float3 orientation )

Definition at line 175 of file gabor.h.

References cosf, dot(), expf, M_PI_F, make_float2(), and sinf.

Referenced by compute_3d_gabor_noise_cell().

◆ compute_3d_gabor_noise()

ccl_device float2 compute_3d_gabor_noise ( float3 coordinates,
float frequency,
float isotropy,
float3 base_orientation )

Definition at line 259 of file gabor.h.

References compute_3d_gabor_noise_cell(), floor(), make_float2(), make_float3(), and sum().

Referenced by svm_node_tex_gabor().

◆ compute_3d_gabor_noise_cell()

ccl_device float2 compute_3d_gabor_noise_cell ( float3 cell,
float3 position,
float frequency,
float isotropy,
float3 base_orientation )

◆ compute_3d_gabor_standard_deviation()

ccl_device float compute_3d_gabor_standard_deviation ( )

Definition at line 192 of file gabor.h.

References IMPULSES_COUNT, and sqrtf.

Referenced by svm_node_tex_gabor().

◆ compute_3d_orientation()

ccl_device float3 compute_3d_orientation ( float3 orientation,
float isotropy,
float4 seed )

◆ svm_node_tex_gabor()