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
-
Hi Raviraj,
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
0 -
2020-07-15-163411Raviraj --I am curious about why you are rotating your image and then analyzing it.If you are counting and measuring features, everything should be the same except measurements related to LOCATION or ANGLE. If you know that the ROI is 55 degrees from a reference, would it not make sense to just correct the FEATURE ANGLE (by adding or subtracting the ROTATION ANGLE) rather than investing the time to rotate the entire image?I hope this information is helpful.-- Matt
0 -
Yes, Matt, good point!
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
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions