segmentFelzenszwalb.m 996 B

12345678910111213141516171819202122232425262728
  1. % function segImg = segmentFelzenszwalb(imgInput, sigma, k, minSize, destination, verbose)
  2. %
  3. % BRIEF: segmentFelzenszwalb Run the region segmentation algorithm of Felzenszwalb
  4. % and Huttonlocher
  5. % V = segmentFelzenszwalb(X, N)
  6. %
  7. % The function accepts the following options:
  8. % INPUT:
  9. % imgInput -- (string or 3d-matrix)
  10. % sigma -- (optional, scalar) bandwidth of Gaussian kernel to
  11. % smooth the image, default: 0.5
  12. % k -- (optional, scalar) influences the threshold accept a
  13. % boundary between regions (larger k -> larger regions), default:
  14. % 500
  15. % minSize -- (optional, scalar), minimum component size (enforced by post-processing stage), default: 20
  16. % destination -- (optional, string)
  17. % verbose -- (optional, bool)
  18. % OUTPUT:
  19. %
  20. %
  21. % Example::
  22. %
  23. % Note::
  24. % Authors: Alexander Freytag
  25. % Copyright (C) 2013 Alexander Freytag
  26. % All rights reserved.