Trying to recreate "extrude" effect from photoshop in openCv

Hi all,
Does anyone know to do even an approximate reproduction of the “extrude” effect from adobe photoshop ( 2021) using openCV and python? Here are some illustrative images ( before/after) done with the extrude filter with “pyramid”, size:4, and depth:20.

details of the extrude filter Apply specific filters in Photoshop

After spike_dogs!

Before dog2|494x326

Bumping this for visbility!