How can I generate a TileSet from an existing image of a level?

Let say I have this level from Zelda: ALTTP.

I know that each tiles are 16×16. How can I generate a tileset and map from part of the original image?

enter image description here

(Image source)