Streetscape-class | R Documentation |
The output of strview_search family functions is constructed in this data format - A specialized data frame for streetscape package for initializing the object with streetscape data and extracting and decoding segmentation information of streetscape dataframe.
data
A data frame containing metadata of Mapillary street view images
epsg
A numeric epsg code
decodeDetection()
Regenerate a dataframe with decoded segmentation. 'detections' column will be updated and a new column 'segmentation' will be added.
download_data(path, items)
Download street view images (and segmentations in sf format if applicable)
get_mask(index)
Convert the semantic segmentation of a street view image from the StreetscapeDataFrame into sf polygons
gvi(level)
Calculate green view index (GVI) for each collected image by segmenting green pixels and quantifing the percentage in street view images. This method adds a new column of greeness percetage to the dataframe
mapPreview(maptype = "meta", fields = c())
Plot data points in an ineractive map view
decodeDetection()
scdataframe$decodeDetection()
gvi()
scdataframe$gvi(level = 1)
level
numeric, indicating the resolution level of images for calculating the green view index. 1 - the 256px wide thumbnail; 2 - the 1024px wide thumbnail; 3 - the 2048px wide thumbnail; 4 - the original wide thumbnail. The default is level = 1
get_mask()
scdataframe$get_mask(index = 1)
index
numeric, the row index of the dataframe of StreetscapeDataFrame class
mapPreview()
scdataframe$mapPreview(maptype = 'meta')
maptype
character or character, specifying what type of information to be mapped: 'meta' - image meta, 'seg' - segmentation proportion, and 'gvi' - GVI".
fields
vector (optional), a vector of fields indicates the information of images to be included for the 'meta' map. The fields of 'id', 'is_pano', 'height', 'width', 'lon', and 'lat' are already included
download_data()
scdataframe$download_data(path = 'path/to/download',
items = c('image', 'mask'))
path
character, directory for downloading street view images or segmentation masks or both
items
character or vector, specifying what to download: 'image' - 'original street view image; 'mask' - semantic segmentation (sf objects in .geojson format)"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.