I’m wondering if it was possible to implement one direction linear blur.
#@cli blur_linear : amplitude1[%],_amplitude2[%],_angle,_boundary_conditions={ 0=dirichlet | 1=neumann }
#@cli : Apply linear blur on selected images, with specified angle and amplitudes.
#@cli : Default values: 'amplitude2=0', 'angle=0' and 'boundary_conditions=1'.
#@cli : $ image.jpg blur_linear 10,0,45
#@cli : $$
blur_linear : skip ${2=0},${3=0},${4=1}
e[^-1] "Apply linear blur on image$?, with angle $3 deg. and amplitudes ($1,$2)."
std1={if(${is_percent\ $1},$1*max(w,h),$1)}
std2={if(${is_percent\ $2},$2*max(w,h),$2)}
stdM={round(1.25*max($std1,$std2))}
if $stdM<=0 return fi
repeat $! l[$>]
expand_xy $stdM,{$4!=0}
{2*$stdM},{2*$stdM} gaussian. $1,$2,$3 normalize_sum.
convolve_fft[0] [1] rm. shrink_xy $stdM
endl done
I’m reading this code, and I think it may has to do with convolve_fft that would make it possible or gaussian? I want one direction linear blur because I would like to replicate Splinter Paint.NET
plugin, and the evidence I have seen from using the plugin reveals one direction motion blur with radial duplicates.
EDIT:
Hmm, it appears that I can in theory have only one direction motion blur by taking half of the image depending on the angle. Then use convolve_fft. Would this interpretation be correct?