Skip to content

Seamlessly blend two images together with extrusion (pop-out) effect

Notifications You must be signed in to change notification settings

BrettFX/image-extrusion-blender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Extrusion Blender

The goal is to blend an image into a background image and extrude the edges in the foreground image to make it visible after matching colors 1:1 with the background image (blending).

Algorithms of interest are Sobel edge detection and weighted sum blending.

Resources

Configurations

Sobel edge detection, optimal values:

  • ksize (kernel size) = 7
  • dx = 1
  • dy = 0

Weighted sum blending, optimal values:

  • Foreground weight = 55%
  • Background weight = 65%
  • Scalar added to each sum = 20

Example

Background Image Foreground Image
Sobel Image Blended Image (Final Result)

About

Seamlessly blend two images together with extrusion (pop-out) effect

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published