Jump to content

Trimming Out Similar Lines


Recommended Posts

Hi, guys.

 

I was hoping you could help me with finding a quick technique or an effect that helps with taking out duplicate lines in an image.

 

When it comes to pixel art, there are times when a sprite graphic has been resized using the nearest neighbor technique. The resize may not have been perfect, either, as it may have been stretched or squeezed out of proper proportion and overlooked later on without it being possible to undo anymore.

 

This may seem impractical, but I wonder if it's possible to scan the entire image horizontally and vertically for any similar lines, one after another. If there is, all the similar lines are deleted down to one unique line, which will safely look like resizing the sprite back to it's perfect size in dimensions.

 

This would be like the same technique as "seam carving", except we're doing it by lines and not by pixels, and are not tolerating any close but not exactly similar content.

 

Before: ezimba12633723383500.png

After: ezimba12633752213200.png

 

Finding and shrinking similar lines to one... horizontally, then vertically.

ezimba12633717644400.pngezimba12633748146200.png

 

Hope this clears up what I'm asking for.

 

-Oddbrother

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...