Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select areas where value is changing rapidly
#1
I'm trying to create a texture mask for a game map, and need to select the cliffs on my terrain. How can I select the areas where the pixel value is substantially different from adjacent pixels by a certain amount?
Reply
#2
Without a sample, difficult to give a good idea. Possible solution:

  1. Duplicate the layer
  2. Set the top to "difference" mode
  3. Start the "Median blur" filter, when its radius becomes close to the "thickness"  of the cliffs, cliffs will appear over a ver dark background. Make a selection from the adequate R/G/B channel (or create  a new layer and massage it first (desaturation, contrast...)
Reply


Forum Jump: