flipping every other line of pixel!

879 views10 repliesLast post: 6/14/2007
Hi there,

I was wondering what is the best way to flip every other line of pixel in an image. I have an image that is flip horizontally at every other line. Example, the first line of pixel in the image is normal, the second line of pixel is flip backward, image on the right appear on the left and image from the left appear on the right. The third line of pixel is normal, forth line is flip like the second line, so on and so forth.

The way I was thinking of solving this was to write, record, an action script to cut one line of pixel, flipping it horizontally, then paste it back. Do this for the whole image.

If anyone has a better idea or way of doing this and would like to share I be greatly appreciated.

Thanks,

AndyN
#1
You could duplicate the layer, flip it. Then make a new white layer Or an Alpha channel) and using Sketch>Halftone Pattern set to LINE make one pixel B&W lines that fill the canvas horizontally.

Make a selection and delete. Or do the same thing as a Layer mask. Either way.
#2
AndyN

Wow! Just how did that happen to your image?

The Plug-in "Filter Factory" which ships with PS (or used to) is made to order for your task. Enter the following codes:

In the R box: y%2==0? src(X-x-1, y, z) : r

In the G box: y%2==0? src(X-x-1, y, z) : g

In the B box: y%2==0? src(X-x-1, y, z) : b
#3
Hey George,

I'm a little new to PS, but it seems like Filter Factory is not just one plug-in is a whole collection of plug-in. I did a search on google and didn't find a specific plug-in called Filter Factory but plug-ins that uses Filter Factory. Can you tell me which one you use that has the R box, G box, and B box option?

AndyN
#4
andy, i think it has to be loaded into the plugins folder on your system from the goodies folder on the disk. been a while since i loaded it so i could be mistaken. if you find it on the ps disk, there should be a read me file or something with instructions on exactly where to put it. you'll need to restart photoshop for it to load.
#5
With CS2, it's on the "Resources and Extras" disk, at Goodies\Photoshop CS2\Optional Plug-Ins\Ffactory\Ffactory.8bf
#6
AndyN,

Dave and John have told you how to find FF. I think you will then want some direction on how to use it. I would suggest "The Filter Factory Programming Guide" by Werner D. Streidt. This well organized, easy-to-read, 50-page manual is vintage 1996 but not the least bit outdated (good stuff meets the test of time).It is a free download from a site you can find by googling.

George
#7
Thank-you very much everyone for all your help. I appreciated, it has help me greatly.
#8
"using Sketch>Halftone Pattern set to LINE make one pixel B&W lines that fill the canvas horizontally."

Wouldn't work. While the lines may be 1 pixel wide, the space between them isn't.
#9
It works if you use a custom patern made up of single pixel lines
#10