Forum

Author Topic: Hide or delete points by classes  (Read 10531 times)

Lupus

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hide or delete points by classes
« on: November 16, 2016, 04:49:20 PM »
Hey community,

I've classified my dense cloud in Ground, Low points and Unclassified.
Is it possible to hide the Low points and Unclassified? Or is it possible to delete these points with one click?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15472
    • View Profile
Re: Hide or delete points by classes
« Reply #1 on: November 16, 2016, 04:53:54 PM »
Hello Lupus,

At the moment it is not possible with only one click. You can perform the operation using Python API:
Code: [Select]
PhotoScan.app.document.chunk.dense_cloud.removePoints([1,2])The argument for the function should be an index of the class to be removed or the list of indices.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Lupus

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Hide or delete points by classes
« Reply #2 on: November 16, 2016, 05:49:36 PM »
Yes, that worked.  :)

How I can determine which index belongs to which class?
Can I display a legend in Photoscan?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15472
    • View Profile
Re: Hide or delete points by classes
« Reply #3 on: November 16, 2016, 06:01:34 PM »
Hello Lupus,

This should be the list of correspondence:
Code: [Select]
{'BridgeDeck': 17,
  'Building': 6,
  'Created': 0,
  'Ground': 2,
  'HighNoise': 18,
  'HighVegetation': 5,
  'LowPoint': 7,
  'LowVegetation': 3,
  'MediumVegetation': 4,
  'ModelKeyPoint': 8,
  'OverlapPoints': 12,
  'Rail': 10,
  'RoadSurface': 11,
  'TransmissionTower': 15,
  'Unclassified': 1,
  'Water': 9,
  'WireConductor': 14,
  'WireConnector': 16,
  'WireGuard': 13}
In the version 1.3 we've added enum representation to the dense cloud classes via PhotoScan.PointClass.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Jeremiah_ROWE

  • Guest
Re: Hide or delete points by classes
« Reply #4 on: June 22, 2017, 08:00:47 PM »
How can one turn back on a class for viewing after turning off?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15472
    • View Profile
Re: Hide or delete points by classes
« Reply #5 on: June 22, 2017, 08:41:04 PM »
Hello Jeremiah,

The deleted dense cloud points can be restored using Restore Dense Cloud option from the Workspace pane context menu or Tools Menu. Just note that all the removed points will be restored. So if you wish some points to be deleted forever, use Compact Dense Cloud option beforehand.

Also we are working on Hide Point Class functionality for the next major update.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Jeremiah_ROWE

  • Guest
Re: Hide or delete points by classes
« Reply #6 on: June 23, 2017, 03:22:26 PM »
Thank you so much for your efforts to make an already great program even better!

SimonSurfs2n8

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Hide or delete points by classes
« Reply #7 on: June 27, 2017, 02:48:08 PM »
Dear Alexey Pasumansky,
im using agisoft 1.3.1. I was just trying to delete " 'Unclassified': 1 ". im prett sure the index has changed, because it didnt work. Deleting all works though.
Sorry im quite new with agisoft.
Is there any way i can call/print the index of "PhotoScan.PointClass"?
Thanks you very much
Simon

Hello Lupus,

This should be the list of correspondence:
Code: [Select]
{'BridgeDeck': 17,
  'Building': 6,
  'Created': 0,
  'Ground': 2,
  'HighNoise': 18,
  'HighVegetation': 5,
  'LowPoint': 7,
  'LowVegetation': 3,
  'MediumVegetation': 4,
  'ModelKeyPoint': 8,
  'OverlapPoints': 12,
  'Rail': 10,
  'RoadSurface': 11,
  'TransmissionTower': 15,
  'Unclassified': 1,
  'Water': 9,
  'WireConductor': 14,
  'WireConnector': 16,
  'WireGuard': 13}
In the version 1.3 we've added enum representation to the dense cloud classes via PhotoScan.PointClass.

Jeremiah_ROWE

  • Guest
Re: Hide or delete points by classes
« Reply #8 on: June 27, 2017, 03:37:31 PM »
Simon. If you are referring to the "above ground (white)" points that are a results of the automated ground classification, then the category you wish to remove is in fact 0. "Created (never classified)" is the above ground white points.

Dear Alexey Pasumansky,
im using agisoft 1.3.1. I was just trying to delete " 'Unclassified': 1 ". im prett sure the index has changed, because it didnt work. Deleting all works though.
Sorry im quite new with agisoft.
Is there any way i can call/print the index of "PhotoScan.PointClass"?
Thanks you very much
Simon

Hello Lupus,

This should be the list of correspondence:
Code: [Select]
{'BridgeDeck': 17,
  'Building': 6,
  'Created': 0,
  'Ground': 2,
  'HighNoise': 18,
  'HighVegetation': 5,
  'LowPoint': 7,
  'LowVegetation': 3,
  'MediumVegetation': 4,
  'ModelKeyPoint': 8,
  'OverlapPoints': 12,
  'Rail': 10,
  'RoadSurface': 11,
  'TransmissionTower': 15,
  'Unclassified': 1,
  'Water': 9,
  'WireConductor': 14,
  'WireConnector': 16,
  'WireGuard': 13}
In the version 1.3 we've added enum representation to the dense cloud classes via PhotoScan.PointClass.