Forum

Author Topic: Python selectPointsByColor does not select the same points as it does with the m  (Read 1704 times)

yowich

  • Newbie
  • *
  • Posts: 46
    • View Profile
Python API "selectPointsByColor" does not select the same points as it does with the Menu (Tools - Dense Clouds - Select Points By Color).
For example,

dense_cloud.selectPointsByColor(color=[104,89,166], tolerance=40, channels='HSV')

does not select any point in my dense cloud, but lots of points are selected if I run Tools - Dense Cloud - Select Points by Color and enter the same values.

I have also tried to use different colors and python API "selectPointsByColors" really didn't select the points.
Is it a bug?
« Last Edit: October 07, 2019, 11:58:48 PM by yowich »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Hello yowich,

Can you please send the screenshot of the Select Points by Color dialog and also the color selection frame?

Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
For the color tuple you should input red, green and blue values anyway, irrespective to the channels parameters used.

I think using RGB tuple instead of HSV for the color parameter should solve the problem, can you please check that?
Best regards,
Alexey Pasumansky,
Agisoft LLC