Hi!
I need to find the min and max value of a displacement texture. I was using a Detail Wrangle to go over each pixel but its a bit slow with 4K textures. Is there a trick to getting the min/max values faster (with less calculations)?
-Olivier
VEX: Get Min/Max Values of a Texture (the Fastest Way?)
446 4 0-
- olivierth
- Member
- 1115 posts
- Joined: 4月 2017
- Offline
-
- animatrix_
- Member
- 4864 posts
- Joined: 2月 2012
- Offline
Hi,
The fastest method is likely to load the texture into COPs and use the Volume Reduce SOP. You have to split the volume into scalar volumes using the Volume Vector Split SOP as Volume Reduce SOP doesn't support collated volumes.
The fastest method is likely to load the texture into COPs and use the Volume Reduce SOP. You have to split the volume into scalar volumes using the Volume Vector Split SOP as Volume Reduce SOP doesn't support collated volumes.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- tamte
- Member
- 9130 posts
- Joined: 7月 2007
- Offline
-
- olivierth
- Member
- 1115 posts
- Joined: 4月 2017
- Offline
-
- tamte
- Member
- 9130 posts
- Joined: 7月 2007
- Offline
-
- Quick Links