Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14343 closed enhancement (fixed)

[Patch] GPS heat map should also support point clouds

Reported by: kidelo Owned by: team
Priority: normal Milestone: 17.02
Component: Core Version:
Keywords: gps track, rendering, colormap, visualization Cc: Don-vip, michael2402, kidelo, Klumbumbus

Description (last modified by kidelo)

Disadvantage:
With current implementation of GPS heatmap mode the lines of tracks are highlighted only.
Sometimes it would be better to see the distribution of points instead of lines.

see ticket:13124

Attachments (13)

josm_ticket_1434_gps_heat_map _point_cloud_v1_by_kidelo.patch (26.2 KB ) - added by kidelo 7 years ago.
heatmap_color_user_light.png (3.5 KB ) - added by kidelo 7 years ago.
heatmap_color_user_normal.png (3.5 KB ) - added by kidelo 7 years ago.
heatmap_config_new.png (18.4 KB ) - added by kidelo 7 years ago.
heatmap_color_traffic_lights.png (3.5 KB ) - added by kidelo 7 years ago.
heatm_draw_lines.png (433.5 KB ) - added by kidelo 7 years ago.
heatm_draw_points.png (388.4 KB ) - added by kidelo 7 years ago.
heatm_example_traffic_lights_draw_points.png (328.1 KB ) - added by kidelo 7 years ago.
heatm_example_traffic_lights_normal.png (312.7 KB ) - added by kidelo 7 years ago.
heatm_example_traffic_lights_limit_level.png (316.6 KB ) - added by kidelo 7 years ago.
heatm_example_inferno_normal.png (314.9 KB ) - added by kidelo 7 years ago.
heatm_example_inferno_increase_gain.png (286.8 KB ) - added by kidelo 7 years ago.
heatm_example_inferno_decrease_gain.png (358.0 KB ) - added by kidelo 7 years ago.

Change History (25)

comment:1 by kidelo, 7 years ago

Description: modified (diff)
Owner: changed from team to kidelo
Status: newneedinfo

by kidelo, 7 years ago

by kidelo, 7 years ago

by kidelo, 7 years ago

Attachment: heatmap_config_new.png added

comment:2 by kidelo, 7 years ago

Some news: Here an update for GPS heatmap with enhancements which I had in mind. Please check and give feedback.


NEW: Heat Map mode now supports two difference modes

  • line based (for tracks and highways), legacy behavior since version 17.01
  • point based (for detection of heat points in small areas), uses point clouds with random distribution for rendering.

NEW: Overlay Gain Adjustment

  • value < 0, brightens saturated areas
  • value > 0, increase visible structure of low density areas

NEW: Limitation of Visibility

  • can be use to hide points with low density, view becomes clearer
  • adjustable in range of 0..254

IMPROVED: 2x new color maps

  • User -> Renamed to "User Normal"
  • User Light, new user defined color mode with inverted color sweep


  • Traffic Lights, looks like the traffic lights green-yellow-red


Version 2, edited 7 years ago by kidelo (previous) (next) (diff)

by kidelo, 7 years ago

by kidelo, 7 years ago

Attachment: heatm_draw_lines.png added

by kidelo, 7 years ago

Attachment: heatm_draw_points.png added

by kidelo, 7 years ago

comment:3 by kidelo, 7 years ago

Some Examples

1. Normal Line Draw mode vs. Point cloud mode - Large Area

2. Normal Line Draw mode vs. Point cloud mode - Small Area

3. Decreased- /Normal- / Increased Gain

4. All Values (draw >0) vs. Limit Level (here draw > 150)


comment:4 by Klumbumbus, 7 years ago

Cc: Klumbumbus added

comment:5 by Don-vip, 7 years ago

Summary: GPS heat map should also support point clouds[Patch] GPS heat map should also support point clouds

comment:6 by bastiK, 7 years ago

Owner: changed from kidelo to team
Status: needinfonew

comment:7 by Don-vip, 7 years ago

Resolution: fixed
Status: newclosed

In 11566/josm:

fix #14343 - GPS heat map should also support point clouds (modified patch by kidelo)

comment:8 by Don-vip, 7 years ago

Thanks! :)

comment:9 by Don-vip, 7 years ago

Why is the parameter abstractProperty not used?

    /**
     * Constructs a new {@code GpxDrawHelper}.
     * @param gpxData GPX data
     * @param abstractProperty The color to draw with
     * @since 10824
     */
    public GpxDrawHelper(GpxData gpxData, AbstractProperty<Color> abstractProperty) {
        data = gpxData;
        setupColors();
    }

in reply to:  9 comment:10 by kidelo, 7 years ago

Replying to Don-vip:

Why is the parameter abstractProperty not used?

    /**
     * Constructs a new {@code GpxDrawHelper}.
     * @param gpxData GPX data
     * @param abstractProperty The color to draw with
     * @since 10824
     */
    public GpxDrawHelper(GpxData gpxData, AbstractProperty<Color> abstractProperty) {
        data = gpxData;
        setupColors();
    }

The ctor parameter was introduced in 10824/josm, see #13309 (ticket). I am not sure why the parameter was not used. Looks like original idea was to bring the caching behavior to the GPXLayer. But the GpxLayer forward the paint() requests to GpxDrawHelper where a internal caching mechanism ( based on color, GPX style, current view area ) is used.


 import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
              public class GpxLayer extends Layer { 
96      96          }
97      97      
98      98          @Override
99                  public Color getColor(boolean ignoreCustom) {
100                     return drawHelper.getColor(getName(), ignoreCustom);
        99          protected ColorProperty getBaseColorProperty() {
        100             return GpxDrawHelper.DEFAULT_COLOR;
101     101         }

We should remove this parameter here and all is fine.

comment:11 by Don-vip, 7 years ago

OK sorry I though it was introduced with color heat map, my mistake :)

comment:12 by Don-vip, 7 years ago

Parameter removed in r11713.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.