One the measurements provided by regionprops is 'Centroid'. Here's an example of labeling binary objects, computing the centroid of each object, and plotting the centroid location on top... 続きを読む >>
Note
Steve on Image Processing with MATLAB has been archived and will not be updated.
One the measurements provided by regionprops is 'Centroid'. Here's an example of labeling binary objects, computing the centroid of each object, and plotting the centroid location on top... 続きを読む >>
The functions bwlabel and regionprops are very useful for measuring the properties of shapes in a binary image. There are documentation examples and product demos showing how to do this,... 続きを読む >>
About twelve years ago, I was implementing the algorithm that became roifill in the Image Processing Toolbox. In this algorithm, a specified set of pixels is replaced (or filled in) such that... 続きを読む >>
Several people have asked me recently how to plot some kind of shape on top of an image, so I thought I'd show the basic technique here. Essentially, you display the image, then call hold on,... 続きを読む >>
This is the first of several blogs about the algorithm behind poly2mask and roipoly. poly2mask takes a set of polygon vertices and produces a binary mask image. The binary mask has 1s for... 続きを読む >>
The Image Processing Toolbox function applycform can convert colors based on ICC profiles. ICC standards for the International Color Consortium, and an ICC profile typically contains... 続きを読む >>
A post in comp.soft-sys.matlab this week (see the third post in this thread) asked how to display graphically the numerical labels associated with each labeled object. In this blog I'll show a... 続きを読む >>
Someone here recently puzzled over the output of the Hough transform functions in the Image Processing Toolbox. The Hough transform is used to detect line segments, typically in binary... 続きを読む >>
Blog reader Jonathan from St. Jude Children's Research Hospital sent me an image derived from an MRI peg phantom:bw =... 続きを読む >>
23-Jun-2015 update: See the new Image Batch Processor App (added to R2015a) and my blog post about it. A couple of months ago I was working with a bunch of pictures I had taken at... 続きを読む >>