updated old px.getValue() and px.roc_id notation. Added single pixel threshold function