ArticleslgStudy

computer science

Samples per inch

Samples per inch is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Samples per inch rather than just read about it. In short: Samples per inch (SPI) is a measurement of the resolution of an image scanner, in particular the number of individual samples that are taken in the space of one linear inch. It is sometimes misreferred to as dots per inch, though that term more accurately refers to printing resolution.

Key takeaways

  • Samples per inch belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Samples per inch to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Samples per inch from memory before moving on to harder problems.

Reference excerpt

Samples per inch (SPI) is a measurement of the resolution of an image scanner, in particular the number of individual samples that are taken in the space of one linear inch. It is sometimes misreferred to as dots per inch, though that term more accurately refers to printing resolution. Generally, the greater the SPI of a scanner, the more detailed its reproduction of the scanned object. Typical consumer-level flatbed scanners are capable of optical resolution ranging from 100 to 2400 SPI; high-end scanners may have an optical resolution of 4800 SPI or more. Many scanners use interpolation techniques to achieve a higher effective SPI rating, with some manufacturers offering nearly one million SPI, though the quality is primarily limited by the optical resolution; interpolated SPI does not provide additional pixels in the scanned image. Horizontal and vertical SPI ratings may differ for a given scanner; typical flatbed scanners use a horizontal array of sensors that are passed across the bed using an electric stepper motor. The density of the array of sensors determines the horizontal scanning resolution, while the minimum step size of the motor determines the vertical resolution. Similar characteristics are present in drum scanners, which continuously spin the item being scanned past the sensor array for numerous imaging passes. To calculate the number of raw data bytes that a scanned image will take up, you can use the follow formula :

v S P I ∗ h S P I ∗ a r e a ∗ c o l o r d e p t h e n c o d i n g 8 {\displaystyle {\tfrac {vSPI\ *\ hSPI\ *\ area\ *\ color~depth~encoding}{8}}}

Where : vSPI is the vertical SPI hSPI is the horizontal SPI (can be considered the same as vSPI if not specified specifically) area is the squared area of the scanned document in inches² color depth encoding is the number of bits used to encode a given amount of color information (256 colors=8; 65'536 colors=16; 16million colors=24) Remember that this will give raw data bytes, images are almost always compressed when saved to disk using lossless (like PNG, TIFF) or lossy image formats (like JPEG).

See also dots per inch pixels per inch lines per inch

References

Worked examples

Example 1 — a first encounter with Samples per inch

Start with the simplest possible case. Write down what Samples per inch claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Samples per inch before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Samples per inch ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Samples per inch

In research
Samples per inch appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Samples per inch in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Samples per inch is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computing input devices, Units of density, so understanding it makes those chapters shorter.
In everyday life
Look for Samples per inch outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Samples per inch in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Samples per inch means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Samples per inch out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Samples per inch in simple terms?

Samples per inch (SPI) is a measurement of the resolution of an image scanner, in particular the number of individual samples that are taken in the space of one linear inch. It is sometimes misreferred to as dots per inch, though that term more accurately refers to printing resolution.

Why does Samples per inch matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Samples per inch?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Samples per inch.

Tags

  • Computing input devices
  • Units of density

Keep exploring