I guess that line 486 needs to be replaced by something like if (!m_LabelledImage) SetLabelledImage( m_ClassifierPtr->GetClassifiedImage() );
This filter exposes a few other parameters which it does not properly respect. If you end up improving this filter, it would be good if you submitted a PR.