Gibbs Prior Filter for Image Classification Smoothing

Hello ITK community,

I have a question about the RGBGibbsPriorFilter. Mainly, I’m having trouble understanding the underlying algorithm for this filter. Is this filter based off of the paper “Gibbs Prior Models, Marching Cubes, and Deformable Models: A Hybrid Framework for 3D Medical Image Segmentation” by Ting Chen and Dimitris Metataxas?

I’m interested in using this filter for post-processing smoothing of my classification image, but I can’t seem to rework the configuration to use my classification image instead of one produced by a classification method within the filter. I’d appreciate any help!

Thank you,
Courtney

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.