Skip to content

Commit 1d306a7

Browse files
committed
docs: add quotes to some tags mentions
1 parent 57577fe commit 1d306a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Tutorials/ROI analysis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ With this the data should be parsed.
169169
In this specific scenario we would also like to tell you about the way to calculate image's pixel size. Pixel size can be one of metadata fields but if this isn't the case we would like to show you how you can calculate it from existing data.
170170

171171
If there is no such field as "Pixel size" you can calculate DPI resolution and apply it with magnification.
172-
DPI resolution represents the number of dots per inch. To calculate it we need to look at three lines in our parsed extra data: XResolution, YResolution and ResolutionUnit.
173-
X and Y resolutions are the number of dots per inch on X and Y axes. So, if they are equal, then DPI resolution equals to one of these values. However, this value might not be measured in inches. To check that we need to look at ResolutionUnit.
172+
DPI resolution represents the number of dots per inch. To calculate it we need to look at three lines in our parsed extra data: `XResolution`, `YResolution` and `ResolutionUnit`.
173+
X and Y resolutions are the number of dots per inch on X and Y axes. So, if they are equal, then DPI resolution equals to one of these values. However, this value might not be measured in inches. To check that we need to look at the value of `ResolutionUnit`.
174174
If its value equals to 2 then the X and Y resolutions are measured in inches.If it's 3 then it's in centimeters and has to be converted.
175175

176176
**image of three extra data fields**
@@ -185,7 +185,7 @@ if (metaTags.XResolution == metaTags.YResolution && metaTags.XResolution) {
185185
break;
186186
case 3:
187187
//converted from centimeters to inches
188-
DPIResolution = metaTags.Xresolution*2.54;
188+
DPIResolution = metaTags.XResolution*2.54;
189189
break;
190190
default:
191191
break;

0 commit comments

Comments
 (0)