Can we convert or remove the black background from the image after the rotation?
I am interested to count the black pixel of the image. But as we can see, after rotating the image, we are getting a black background and I do not want to count those black background pixels. Can we somehow get white background instead of black in the Image pro ?
0
Best Answers
-
2020-07-15-173550Yuri --Thank you for the reminder about the ORIGIN OPTION and ROTATION OPTION in the SPATIAL CALIBRATION.That would resolve the entire issue.
A copy of the SPATIAL CALIBRATION UI with the ORIGIN CONTROLS and ROTATION CONTROL highlighted is below.Thanks again.-- Matt
0 -
There is also an easy way to create such calibration: just draw a measurement line, select it, click right mouse button and select "Set as X Axis" from the context menu: a new calibration will be created and all object coordinates recalculated. The screenshot below shows objects classified (color-coded) by X coordinate:
Yuri0
Answers
You can put a ROI on your image excluding background and count inside the ROI. If you rotate an image, the ROI should be created automatically, it looks like you already have it on your screenshot, so just count.
Yuri
You can create a spatial calibration with given origin and angle (Image-Pro supports it), and then measure XY position of the objects in that system of coordinates.
Yuri