- Fitting an ellipse
- Image moments
- Gradient image analysis
- Image processing toolbox
The easiest one to try quickly is the one in image processing toolbox. The algorithm for determining the angle that is the following.
- For the circular patch, threshold values below the gray value that is at 50 percentile point.
- For the resulting binary image choose the largest patch and determine the orientation of the match from the "regionprops" command.
- The orientation of the synapse is perpendicular to the orientation of the region.
The results for this method are shown below. The input image is shown to the left. THe input image is an image downsampled 25% and smoothened by perona-malik smoothening for 25 iterations. Then the grey values of this image have be ordered and the 50 percentile grey value is calculated and all grey value above it are set as "1" and the rest are set as "0".
The result of the above thresholding is shown to the left here. The region property of orientation is determined which is likely to the orientation of the membrane. The orientation of the synapse is perpendicular to the synapse. Hence the orientation of the synapse is +15.7 degrees to the positive X-axis.
2 comments:
You r a researcher on Computer Vision. Now I'm just very intreasted in it. Recently, I'm read papers about Mean Shift and use OpenCV. Hope to communicate with u.
What do use OpenCV for?
Post a Comment