Function to run the Execute method of this filter
| 220 | // Function to run the Execute method of this filter |
| 221 | // |
| 222 | Image |
| 223 | Extract(const Image & image1, |
| 224 | std::vector<unsigned int> size, |
| 225 | std::vector<int> index, |
| 226 | ExtractImageFilter::DirectionCollapseToStrategyType directionCollapseToStrategy) |
| 227 | { |
| 228 | ExtractImageFilter filter; |
| 229 | filter.SetSize(size); |
| 230 | filter.SetIndex(index); |
| 231 | filter.SetDirectionCollapseToStrategy(directionCollapseToStrategy); |
| 232 | return filter.Execute(image1); |
| 233 | } |
| 234 | // |
| 235 | // Function to run the Execute method of this filter |
| 236 | // |