Accurate subvoxel edge location for 3D images

Detection of subvoxel edges with very high precision in 3D images


Updated 25 Jan 2023

View License

This is the Matlab source code of the subvoxel edge detection method for 3D images, as detailed in the paper “Accurate Subvoxel Location and Characterization of Edges in 3D Images Based on the Partial Volume Effect”, (if you are interested in the code of 2D subpixel detector, go to this other link).
The main folder contains the following files:
  • subvoxelEdges is the detection method. Type help subvoxelEdges for more info
  • visEdges is the method for displaying detected edges over the image
  • subsetEdges extracts a subset of edges that fulfill condition
  • readanalyze reads images in Analyze format (.hdr)
  • example1 is an example of edge detection of a synthetic sphere
  • example2 is similar but with another synthetic objects
  • example3 detects edges on a phantom image simulating a large vessel
  • example4 detect edges on medical images of aortic regions
All the examples include parameters inside the code to play with. All the sample images are available online.
Any comment or question, please mail to

Cite As

Agustin Trujillo-Pino (2023). Accurate subvoxel edge location for 3D images (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Corrected link to the paper


Updated link to the preview of the original paper


Added link to the source code of 2D subpixel detector