In Paint Shop Pro, I would click Filters >> Find Edges.  But for Photoshop, it’s a combination of the following:

  • Filters >> Other >> High Pass
  • Image >> Adjustments >> Threshold

Referenced from here.