The instance indices in allInstances (never includes 0, the background).
allInstances
List<int> instances;