Create a grayscale image with the highest pixel of grayscale input.

I must thank Vincent Gault here, his tutorial about "Shape to Height" (https://forum.allegorithmic.com/index.php?topic=7897.0) gave me the the idea on how to find and keep as a variable the highest point of an heightmap. Thanks again.

This filter is just a tool, that allows you to find the highest point of an heightmap, and to keep/use this information for other nodes that need it. Example : https://share.allegorithmic.com/libraries/2214 (Stack_auto).

For the lowest point, you can use https://share.allegorithmic.com/libraries/2218

Very important update 25/09/16: Now the node doesn't freeze/crash your computer in highest resolutions like 8k. The heightmap is now decimated until a small size, without loosing information of the highest pixels.
Downside is that in very small resolutions (like 32x32) the method doesn't work well, and I had to put a parameter for which method you want. But, when you use this node inside your own nodes, you can automate it (see the pictures). Thanks @gudz.evgeniy for pushing me to find something better.
I tested it a lot, but if something's wrong, don't hesitate to ask.

By the way, the gain with a 2K heightmap is around 200x faster...

Uploaded: almost 4 years ago
Updated: over 3 years ago
Version: 2
File Name: Max_Value_Grayscale-250916.zip
Size: 51 KB

DownloadblackDOWNLOAD



DISCUSS
Be the first to comment!