06-05-2019 03:30 PM
Hi,
The minimum ROI step size when drawing a line is one pixel (ROI Grid Size property).
Is there a way to adjust the ROI grid size for subpixel resolution step size?
- Sable
06-05-2019 05:22 PM
Pictures are made of pixels. You cannot (easily) divide a pixel, so what will you do with sub-pixel resolution?
Note that if an image is 100 x 100 pixels, and you compute an ROI that's 2.3 x 4.7 "pixels" in size, you could have as many as 3 x 5 = 15 pixels "inside" it (assuming it isn't tilted), or as few as 2 x 4 = 8 pixels. The problem comes when you want to visualize it -- it has to take on "integer" values, so the height will be either 2 or 3, the width either 4 or 5, a bit of a mess (but you could write your own sub-pixel code, I suppose ...).
Bob Schor
06-06-2019 01:29 AM
I want to measure the length of an item on the image. My thoughts are subpixel resolution would yield better accuracy than single pixels.
For example if the actual length of an item takes 3.5 pixels in the image, the current ROI measures 3 (or) 4 pixels because of integer values.
- Sable
06-06-2019 03:55 AM
06-06-2019 04:24 PM
This is a sample image.
Just use the attached vi to load the image to IMAQ.
Draw a ROI line against the ruler scale to calibrate the length to 10 cm (example) - assume the ruler is not tilted or rotated which will be the actual scenario.
Then use that length to measure an object on the same image (Note: object is not present on this image).
- Sable
06-06-2019 10:52 PM