Arbitrary Pixel Stretch on G'MIC

Is there a way to generate this on G’MIC? There doesn’t seem to be a 2- click method to this arbitrary pixel stretch. Non-destructive approach I have made is super slow. One attempt took 6.6 GB of memory!

If you pay attention to the pixel stretch, note how the pixel source is based off the shape rather than a straight cut, and pixel stretch. This was a technique done for vaporware art.What you see in the screenshot is an attempt at non-destructive arbitrary pixel stretch using multiple clone layer, and fitler mask.

We probably need more info. What is the kind of input, an image + a mask ? how the user select the shape of the cut ?

To do the selection :

  1. do the cut by selecting an area
  2. duplicate a layer
  3. Clearing the area with the selection.
  4. Move the selection by 1 px to the right
  5. copy those pixels found only the changed layer.

Those are the pixels that will be used for processing.

The non-destructive approach you’re seeing in the screenshot as you can see there does this automatically, but a lot of a motion blur by angle 0. It’s more like a mask-based editing.

Does this help?

EDIT: Take a look at Trail plugin for Paint.NET - Trail - Plugins - Publishing ONLY! - paint.net Forum

That is exactly how it should behave, but just for clean edge without anti-aliasing.

For transparent area like fog texture, I’d imagine it’d be mask based where you can also stretch alpha-based pixel and it’ll be equal to the processed pixels alpha.

https://www.youtube.com/watch?v=tsh_g4CAbKM&feature=youtu.be

Here’s a youtube video of how I think it should work. Mask-based editing involving 2 layers is the most reasonable approach, I believe so. See end result by :58, and see cleared area by :41. It also works on anti-aliasing edge.

I’ve added a new filter in the plug-in, namely Degradations / Streak :

I think this should solve your problem, and even do a bit more :slight_smile:

3 Likes

Looks like a new way to inpaint :smile:.

1 Like

Not a clever way though :wink:

I like it. 1 observation and 1 question though.

  1. There doesn’t seem to be a way to smooth the result without having to go through some trouble as a option. I know vaporware artists can benefit from rough jaggy results inside the masked area.

  2. Does it work with Alpha Channel?