Thanks fwm42.
I am following the procedure from the fft notch filtering example. In my previous post twigs was replaced with logo - my test image.
All I want to do is remove \ from the syntax and put each expression on a single line and avoid newlines - this was simple enough with the first two convert commands, but produced errors with the third.
Eventually, this process will be included in a bash script. The manual masking will be performed using IMs display. Once the masking is complete the script will continue. Early days yet, but I would like to avoid newlines if I can. I think the third expression is correct but when running in a terminal complains about the first (
"Lets try this on an another example. This time on a "Twigs" image found on the RoboRealm website, which contains an irregular pattern of horizontal and vertical stripes."
"Again we extract a grey-scale spectrum image, just as we did before."
Code: Select all
convert twigs_spectrum_edited.png twigs_spectrum.png -compose difference -composite -threshold 0 -negate twigs_spectrum_mask.png
"Again we mask out the parts using a image editor, this time using a 'blue' color (it really doesn't matter which color is used)..." the manual masking
Code: Select all
convert twigs_spectrum_edited.png twigs_spectrum.png -compose difference -composite -threshold 0 -negate twigs_spectrum_mask.png
"Now we again multiply the mask with the FFT magnitude image, and reconstruct the image"
Code: Select all
convert twigs.jpg -fft \( -clone 0 twigs_spectrum_mask.png -compose multiply -composite \) -swap 0 +delete -ift twigs_filtered.png
Version: ImageMagick 7.0.7 (latest compiled from source) Q32 x86_64 (as of) 2018 - 04 - 31 xubuntu