Small colored marks can disappear or change shape even when a camera produces a large, sharp-looking image. The problem becomes especially noticeable when you inspect narrow printed lines, locate colored edges, or separate touching features. This explainer is for teams choosing a camera and lens for those tasks. Start with the feature size and field of view, then test how sensor sampling, color reconstruction, optics, and processing affect the actual inspection decision.
Why pixel count does not describe color detail
A camera's output dimensions tell you how many image locations it reports. They do not establish how much independent color information exists at each location.
Many color cameras use a color filter array over a single sensor. Each photosite measures light through one filter, rather than measuring red, green, and blue independently. A reconstruction process called demosaicing estimates the missing channels from neighboring measurements.
That distinction matters when your feature approaches the spacing between samples of its dominant color. A broad colored patch can provide a stable measurement, while a narrow line of the same material may change appearance with position.
Separate three requirements before choosing hardware:
- Feature detection: Can the system reliably decide that a mark exists?
- Color discrimination: Can it distinguish the mark from nearby materials?
- Edge localization: Can it place the mark's boundary within your required tolerance?
Passing one does not establish the others. A visible line might have an unstable measured width, and a well-localized brightness edge might have unreliable color.
For the broader distinction between sampling and measurement accuracy, use the guide to choosing camera resolution for dimensional inspection. Requirements involving shade differences also need the controls described in machine vision colour inspection beyond raw RGB values.
How Bayer sampling changes the available information
A common Bayer arrangement contains one red-filtered site, two green-filtered sites, and one blue-filtered site in each repeating square. The exact arrangement and processing must be checked for the camera you are considering; a catalog label saying color does not establish them.
In this arrangement, red and blue samples repeat every two sensor pitches along each sensor axis. Green samples occupy a denser, staggered pattern. Consequently, detail recovery depends on orientation, wavelength content, and the reconstruction algorithm.
For an ideal red-only or blue-only sinusoidal pattern aligned with a sensor axis, the corresponding sample lattice has a theoretical Nyquist limit of one cycle per four sensor pitches. This is a sampling boundary, not a dependable inspection operating point. Optical blur, noise, and processing can reduce usable detail further.
Do not translate that observation into a universal claim that a color camera has half the resolution of a monochrome camera. Brightness detail can appear across several channels, while nearly isoluminant colored boundaries may depend strongly on differences between them.
Demosaicing also changes the trade-off. An edge-aware method may preserve some boundaries better than simple interpolation, but no algorithm can recover arbitrary scene detail that was never adequately sampled.
Turn the smallest feature into a sampling requirement
Use object-space sampling to connect the inspection task with camera dimensions. For a flat target approximately parallel to the sensor, the starting relationships are:
These equations describe geometric sampling. They do not include lens blur, color reconstruction, or measurement uncertainty. Apply them at the actual inspection plane, including the field-of-view margin needed for part movement.
Consider a hypothetical requirement with a 120 mm field of view and 2400 horizontal pixels. The object-space sampling is:
The larger mark spans six output pixels, but only roughly three red or blue sample intervals along a sensor axis. That does not guarantee three useful measurements across the mark: its position, orientation, and optical blur still matter. The smaller mark is particularly vulnerable to sampling phase and color artifacts.
Suppose your initial test target is eight output pixels across the larger mark. That gives:
Eight pixels is a test hypothesis, not a universal acceptance threshold. Validate it against representative parts before committing to hardware. The camera resolution calculator workflow can begin your camera selection; the calculation below provides the sampling estimate.
If you cannot increase pixel count, narrowing the field of view may provide the same sampling improvement. The guide to high resolution machine vision cameras explains why additional pixels still need suitable optics and acquisition capacity.
Treat colored edge location as a separate measurement
A brightness edge and a color boundary are not always the same thing. Adjacent materials can have similar grayscale brightness while differing strongly in color. Converting that image to grayscale may remove the boundary you need.
Conversely, selecting one channel may reveal an excellent edge but expose the sparse sampling of that channel. Edge position can then move as the part shifts relative to the sensor grid.
Using the hypothetical sampling above, an allowable position error of 0.020 mm corresponds to:
That tolerance requires validation of the complete measurement chain. A subpixel edge routine may report fractional coordinates without achieving that accuracy under changes in position or color.
Test horizontal, vertical, and diagonal boundaries. Move the target physically through several fractions of an image pixel, then compare reported positions against the known movement. Resizing an existing image cannot reproduce the sensor measurements from those physical offsets.
Lens lateral chromatic aberration can also separate channel edges, especially away from the image center. Compare center and corner performance rather than accepting one central crop.
Choose the camera and lens as a sampling system
Use area scan cameras to shortlist interface, shutter, and sensor options, then narrow the candidates in the camera finder. Do not select from megapixels alone.
The MV-CU020-90GC is a color camera with a global shutter and a GigE interface. It is a candidate when shutter behavior is part of the selection decision, subject to confirming the required sampling and acquisition settings.
- Sensor format
- 1/1.7"
- Lens mount
- C-mount
- Interface
- GigE
- Resolution
- Up to 3 MP
The MV-CS200-10GC is a color camera with a rolling shutter and a GigE interface. Evaluate scene motion and acquisition timing before treating additional image detail as useful inspection detail.
- Sensor format
- 1"
- Lens mount
- C-mount
- Interface
- GigE
- Resolution
- 16-25 MP
Neither shutter type establishes color-filter layout, demosaicing quality, or usable resolution. Confirm those details in the manufacturer's documentation. A global shutter also does not eliminate exposure blur.
For machine vision lenses, check sensor coverage, mount compatibility, working distance, and image quality at your intended aperture. The lens finder helps narrow the mechanical and optical choices.
The LS-FFL-0567 is a C-mount lens to consider during optical selection. Confirm the complete camera-and-lens combination rather than treating a lens resolution label as proof of feature visibility.
- Type
- Machine vision fixed
- Sensor format
- 1.1"
- Mount
- C-mount
- Resolution
- 16-25 MP
A lens can cover the sensor while delivering insufficient contrast at the spatial frequencies your inspection needs. Closing the aperture may improve some aberrations, but excessive stopping down increases diffraction blur. Test the actual working distance and aperture, not just the lens at its sharpest central position.
The lens and lighting selection test plan provides a useful framework for comparing combinations without changing several variables simultaneously.
Compare the changes that can actually help
Choose the intervention that addresses the limiting mechanism. A sharper display image is not automatically a better inspection image.
| Change | When it can help | What it does not establish |
|---|---|---|
| Increase horizontal pixel count | The smallest feature has too few samples | Adequate lens contrast or stable reconstructed color |
| Reduce field of view | Mechanical coverage allows tighter framing | Coverage of every possible part position |
| Improve lens performance | Blur or channel misregistration limits detail | Recovery of undersampled scene information |
| Improve lighting and exposure | Noise or motion blur masks useful samples | More independent color samples |
| Change demosaicing | Reconstruction artifacts dominate the decision | Recovery of arbitrary missing detail |
| Use monochrome acquisition | Brightness or filtered spectral contrast answers the task | General color identification from one image |
A monochrome camera may be the better choice when you only need a high-contrast outline or a printed mark that separates reliably under controlled illumination. It is not a substitute when the decision genuinely requires multiple color measurements.
Specialized multi-sensor color architectures are another option when independent channel sampling is essential. They still require evaluation of channel registration, lens performance, and acquisition behavior. Do not assume architecture alone guarantees measurement accuracy.
When changing image size or applying geometric correction, follow antialiasing guidance for downsampling and warping. Processing can otherwise introduce another sampling problem after acquisition.
Validate with representative targets and physical offsets
Use real production materials alongside a controlled target. A neutral resolution chart can reveal optical blur, but it may not reproduce a narrow colored feature's channel contrast.
A practical evaluation sequence is:
- Define the acceptance decision. Record the smallest mark, required position tolerance, allowable false accepts, and allowable false rejects.
- Build representative features. Include colored lines, gaps, and boundaries using the actual materials or printing process. Test multiple widths around the acceptance boundary.
- Fix acquisition settings. Hold exposure, gain, white balance, illumination, and processing constant during each comparison. Record any settings that cannot be disabled.
- Control focus. Establish a repeatable focus procedure and inspect the field corners. A reliable image sharpness metric helps separate focus changes from sampling effects.
- Shift and rotate the target. As a starting test, use at least eight physical offsets spanning approximately two image pixels, plus horizontal, vertical, and diagonal orientations.
- Compare acquisition stages. Where documented camera features permit, retain raw mosaic data and reconstructed images from the same exposure. Record pixel format, demosaicing method, sharpening, and resizing.
- Score the actual inspection. Measure missed features, false detections, edge error, and repeatability. Keep representative failures, not just the sharpest image.
Document the illumination geometry and exposure because motion blur can consume the sampling margin. For example, an object moving at 200 mm/s travels 0.050 mm during a 250 microsecond exposure. Under the hypothetical sampling above, that is one image pixel of travel.
Checks before ordering
Before placing an order, confirm that your evidence covers the whole inspection envelope:
- The narrowest feature passes at unfavorable positions relative to the sensor grid.
- The required field of view includes part movement and placement variation.
- Edge error stays within tolerance across orientation, material, and image location.
- The selected lens covers the sensor and performs at the intended aperture and working distance.
- Motion, exposure, and shutter behavior have been tested together.
- The production pixel format and processing pipeline match the validated configuration.
- Camera documentation confirms any required raw output or color-processing controls.
Start the camera configuration process with your calculated sampling requirement. If the decision remains uncertain, send the field of view, smallest colored feature, motion conditions, and representative image crops through application support. Ask for a combination evaluated against your inspection decision, rather than a pixel-count recommendation alone.
Questions
Does a color camera have the same effective resolution as a monochrome camera?
No. The relationship depends on the feature's colors, orientation, brightness contrast, optics, and reconstruction method. A single-filter-array camera does not independently measure every color at every output location. Compare candidates using the smallest representative features and the inspection's actual acceptance criteria.
How many pixels should cover the smallest colored mark?
There is no dependable minimum for every material and algorithm. Calculate the feature's width in output pixels, choose an initial margin, and test physical shifts relative to the sensor grid. Increase sampling if detection or measured width changes excessively with position, orientation, or image location.
Can better demosaicing replace a higher-resolution sensor?
A different reconstruction method may reduce artifacts or improve boundaries when useful information is present in the raw measurements. It cannot reliably recover arbitrary detail lost through inadequate sampling. Compare methods using fixed acquisition settings and reference measurements rather than judging only the displayed image.
When should a colored-feature inspection use a monochrome camera?
Use monochrome when controlled illumination creates reliable intensity contrast and the inspection does not need general color identification. It can simplify fine-detail analysis, but a single grayscale measurement cannot distinguish every pair of colors. Test actual materials, including acceptable production variation, before changing the acquisition method.
Is a black-and-white resolution chart enough to evaluate color detail?
A neutral chart is useful for checking focus and spatial contrast, but it does not exercise all color-channel sampling effects. Add targets made from representative colored materials, with the required widths and boundaries. Evaluate them across the image field and at several physical offsets.


