flipping every other line of pixel!

A
Posted By
AndyN
Jun 11, 2007
Views
879
Replies
10
Status
Closed
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

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

EH
Ed_Hannigan
Jun 11, 2007
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.
GA
George_Austin
Jun 12, 2007
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
A
AndyN
Jun 13, 2007
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
DM
dave_milbut
Jun 13, 2007
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.
JR
John_R_Nielsen
Jun 13, 2007
With CS2, it’s on the "Resources and Extras" disk, at Goodies\Photoshop CS2\Optional Plug-Ins\Ffactory\Ffactory.8bf
GA
George_Austin
Jun 13, 2007
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
A
AndyN
Jun 14, 2007
Thank-you very much everyone for all your help. I appreciated, it has help me greatly.
P
Phosphor
Jun 14, 2007
"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.
B
Bernie
Jun 14, 2007
It works if you use a custom patern made up of single pixel lines
P
Phosphor
Jun 14, 2007
A’yup!

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections