Photometric brown-dwarf classification