Skip to content
CoreSource checked

Shi-Tomasi Corner Detection

Shi-Tomasi Corner Detection detects repeatable local image features.

Quick Facts

Compact metadata for implementation and discovery.

Category
Image Processing
Difficulty
Intermediate
Family
Image Processing
Tier
Core
Status
Verified
Review
Source Checked
Sources
2
Formulas
1
Relationships
2
Code example
Ready
Visualization
Ready

Overview

Shi-Tomasi Corner Detection is an image processing method that measures local image evidence and returns features, masks, segments, or restored pixels. It is useful when later vision steps need a compact feature, mask, or corrected image.

Core Concepts

pixel neighborhoodimage featurelocal responsefilter responseimage mask

Quick facts

Complexity

Runtime and memory behavior at a glance.

Best

O(p)

Average

O(p k)

Worst

O(p k)

Space

O(p)

When to Use

  • Use Shi-Tomasi Corner Detection when its image evidence matches the feature, mask, or restoration task.
  • Use it when downstream vision code can tolerate its noise and scale assumptions.

When Not to Use

  • Avoid when lighting, scale, or noise conditions break the detector's assumptions.
  • Avoid when learned or task-specific methods are available and substantially more accurate.

What It Does

  • Measures local image structure
  • Transforms pixels, regions, or features
  • Produces an image, mask, or feature set

Use Cases

  • Computer vision preprocessing
  • Feature extraction
  • Image restoration

Inputs

  • Input image
  • Kernel, threshold, or model parameters
  • Region or feature settings

Outputs

  • Filtered image
  • Detected features
  • Segmentation or transform result

Key Formulas (1)

Corner score

score = min(lambda1, lambda2)
score = min(lambda1, lambda2)

Uses the smaller eigenvalue of the structure tensor as the corner strength.

Pseudocode

  1. 1.Prepare the image and method parameters
  2. 2.Evaluate the local response, model, or transform for each relevant pixel or region
  3. 3.Threshold, rank, refine, or combine the responses
  4. 4.Return the feature set, mask, filtered image, or restored image

Canonical Example

Input
image = small grayscale patch
Output
response map, mask, or transformed image
Explanation
Shi-Tomasi Corner Detection evaluates local image evidence and returns the pixels, regions, or features selected by the method.

Implementation Notes

  • Define border handling and coordinate conventions before tuning thresholds.
  • Test on a tiny synthetic image where the expected response is obvious.
  • Keep coordinate conventions, border handling, and image normalization explicit in tests.

Common Pitfalls

  • Using fixed thresholds across changing lighting conditions makes output brittle.
  • Ignoring border handling changes results near image edges.
  • Thresholds tuned on one clean image can fail under different lighting, scale, blur, or noise.

Interactive Mechanism Walkthrough

Spatial Primitive & Sweep-Line Canvas

Show the input image beside the response map, mask, or transformed output.

Shi-Tomasi Corner Detection mechanism walkthrough step 1 of 4
Step 1 of 4: Prepare the image and method parameters
image-processing

Notes

Shi-Tomasi Corner Detection operates in O(p k) time and O(p) space within the Image Processing family. Key governing relation: score = min(lambda1, lambda2). Often compared with Harris Corner Detection and FAST Corner Detection.

Sources (2)

What each reference supports for this entry.

Good Features to Track

Paper

Original Shi-Tomasi reference for selecting features by minimum eigenvalue.

Open source

Computer Vision: Algorithms and Applications

Book

Computer-vision textbook support for Shi-Tomasi Corner Detection's feature, matching, flow, or multiscale image-analysis workflow.

Open source

Explore Next

Good next jumps from the relationship graph, ranked for useful discovery.

Shi-Tomasi Corner Detection extracts or transforms image evidence differently than Harris Corner Detection.

Tags

Image Processing