Rhino render / material and object ID?

How do I get the numbers for the Material ID in GIMP? How do I make them useful for compositing in GIMP or Photoshop?