110 likes | 244 Views
Dr. Niels Lobo Computer Science. Using the Lens Macro in ImageJ. Outline. Inverse Relationship Ratios Lenses Using the Lens Macro Lenses in ImageJ. Inverse Relationship. When the distance between the object and the camera decreases the size of perceived image increases.
E N D
Dr. Niels LoboComputer Science Using the Lens Macro in ImageJ
Outline • Inverse Relationship • Ratios • Lenses • Using the Lens Macro • Lenses in ImageJ
Inverse Relationship • When the distance between the object and the camera decreases the size of perceived image increases. • When the distance between the object and the camera increases the size of the perceived image decreases. to
Ratios Ratios are the comparative quantities by which figures are proportional to each other. Example: If the area of A(1x4) is 4 and the area of B(2x8) is 16, the ratio is 4/16, or 1/4
Lenses A lens takes one image and scales that image down, using an inverse relationship based on the distance between lens and image, while flipping the image as well. Example: Eyes
Inverse Relationship Question Question: What is the new height of the highlighted triangle, (base: 17, height: 3, A. 3to area: 25.5) B. 10 (base:17, C. 9 height: ?, area: 76.5) ?
Using the Lens Macro • Open ImageJ • Go to plugins> macros> run…
Using the Lens Macro • Select 111lens.txt • This will take you to My Pictures, select any picture you like.
Using the Lens Macro • Now, you can drag and drop the picture anywhere on the screen. • Notice how the values of XO, OY, AX, YB change, when you change the picture’s position relative to O. Drag with mouse
Lenses in ImageJ In this equation, k is the scalingratioof the distances, X to O and O to Y:
Lenses in ImageJ Question In this picture what is k (the scaling ratio of XO to OY) equal to?