Exploring code for sharpening

Playing around with what i can get the code block to do. My current goal is something like a ridge/creases aware sharpening. I got the first step working last night which is an unsharp mask, there are issues with using “just this” so more finagling. I will be working on it tonight detecting the ridge vs crease so it can sharpen only the ridges or creases or both, as well as only sharpening where a ridge/creases are. Next step after that is playing with eigenvectors to only sharpen “along” the ridge or crease rather than just a blob in the area. I’ll post my progress tonight on it. (Images are only unsharp masking step so far, see how it greatly exaggerates the features outside of the crease area making the rock taller locally as well as blowing up the talus “sand texture” )

Wip code so far

4 Likes

ok more progress. I have it able to sharpen only ridges or creases. it also has the direction of curvature in the background but it doesn’t visualize well, and doesn’t affect anything yet.

3 Likes

its a lot closer now. its not fully rejecting the high frequency noise from the derivatives (looks like sand) but its much better.

2 Likes