The purpose of the present invention is to provide: an index generation method and an index generation device which are capable of accurately and stably generating an index for measuring the width of an imaging object; and a measurement method which is capable of accurately and stably measuring the width of the imaging object. An index generation method according to one embodiment of the present invention is provided with: an image input step in which an image obtained by imaging a linear imaging object is inputted; a density distribution acquisition step in which a plurality of density distributions of the linear imaging object in the width direction are acquired from the inputted image, along a direction orthogonal to the width direction of the linear imaging object; a function calculation step in which a probability distribution function corresponding to the plurality of acquired density distributions is calculated; and an index generation step in which an index indicating the width of the imaging object is generated on the basis of the calculated probability distribution function.L'objectif de la présente invention est de fournir : un procédé de génération d'indice et un dispositif de génération d'indice qui sont aptes à générer de façon précise et stable un indice pour mesurer la largeur d'un objet ; et un procédé de mesure qui est apte à mesurer de façon précise et stable la largeur de l'objet. À cet effet, un procédé de génération d'indice selon un mode de réalisation de la présente invention comprend : une étape d'entrée d'image dans laquelle une image obtenue par imagerie d'un objet linéaire est entrée ; une étape d'acquisition de distribution de densité dans laquelle une pluralité de distributions de densité de l'objet linéaire dans la direction de la largeur sont acquises à partir de l'image entrée, le long d'une direction orthogonale à la direction de la largeur de l'objet linéaire ; une étape de calcul de fonction dans laquelle une fonction de distribut