| 35 | } |
| 36 | |
| 37 | void ShowSegmentationAsSurface::Initialize(const NonBlockingAlgorithm *other) |
| 38 | { |
| 39 | Superclass::Initialize(other); |
| 40 | |
| 41 | bool syncVisibility(false); |
| 42 | |
| 43 | if (other) |
| 44 | { |
| 45 | other->GetParameter("Sync visibility", syncVisibility); |
| 46 | } |
| 47 | |
| 48 | SetParameter("Sync visibility", syncVisibility); |
| 49 | SetParameter("Median kernel size", 3u); |
| 50 | SetParameter("Apply median", true); |
| 51 | SetParameter("Smooth", true); |
| 52 | SetParameter("Gaussian SD", 1.5); |
| 53 | SetParameter("Decimate mesh", true); |
| 54 | SetParameter("Decimation rate", 0.8); |
| 55 | SetParameter("Wireframe", false); |
| 56 | |
| 57 | m_SurfaceNodes.clear(); |
| 58 | } |
| 59 | |
| 60 | bool ShowSegmentationAsSurface::ReadyToRun() |
| 61 | { |