| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
CLIPPEDIMAGES |
32 |
public static final int |
CMYKIMAGES |
128 |
public static final int |
COLOR |
512 |
public static final int |
FINALIMAGES |
4 |
public static final int |
NOTEXTPRINT |
0 |
public static final int |
OCR_PDF |
32 |
public static final int |
RASTERIZE_FORMS |
1024 |
public static final int |
RAWCOMMANDS |
16 |
public static final int |
RAWIMAGES |
2 |
public static final int |
REMOVE_NOFORMS |
32 |
public static final int |
REMOVE_RENDERSHAPES |
16 |
public static final int |
RENDERIMAGES |
2 |
public static final int |
RENDERTEXT |
1 |
public static final int |
STANDARDTEXTSTRINGPRINT |
3 |
public static final int |
SUBSTITUTE_FONT_USING_FAMILY_NAME |
3 |
public static final int |
SUBSTITUTE_FONT_USING_FILE_NAME |
1 |
public static final int |
SUBSTITUTE_FONT_USING_FULL_FONT_NAME |
4 |
public static final int |
SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME |
2 |
public static final int |
SUBSTITUTE_FONT_USING_POSTSCRIPT_NAME_USE_FAMILY_NAME_IF_DUPLICATES |
5 |
public static final int |
TEXT |
1 |
public static final int |
TEXTCOLOR |
64 |
public static final int |
TEXTGLYPHPRINT |
1 |
public static final int |
TEXTSTRINGPRINT |
2 |
public static final java.lang.String |
version |
"5.06b01" |
public static final int |
XFORMMETADATA |
256 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
JSInvalidDateFormat |
2 |
public static final int |
JSInvalidFormat |
1 |
public static final int |
JSInvalidNumberFormat |
4 |
public static final int |
JSInvalidPercentFormat |
5 |
public static final int |
JSInvalidRangeFormat |
3 |
public static final int |
JSInvalidSpecialFormat |
6 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
COLORSPACES |
1 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
IS_EXTRACTION_ALLOWED |
103 |
public static final int |
IS_FILE_ENCRYPTED |
101 |
public static final int |
IS_FILE_VIEWABLE |
100 |
public static final int |
IS_METADATA_ENCRYPTED |
102 |
public static final int |
IS_PASSWORD_SUPPLIED |
104 |
public static final int |
NO_VALID_PASSWORD |
0 |
public static final int |
VALID_OWNER_PASSWORD |
2 |
public static final int |
VALID_USER_PASSWORD |
1 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
IMAGE_INVERTED |
1 |
public static final int |
IMAGE_ROTATED |
2 |
public static final int |
NOTHING |
0 |
public static final int |
TURN_ON_DRAW |
4 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
HORIZONTAL_DOUBLE_PAGE |
2 |
public static final int |
NONE |
-1 |
public static final int |
SINGLE_PAGE |
1 |
public static final int |
SWING_WIDGETS_ON_CLIENT |
4 |
public static final int |
TRANSFER_AS_DECODE_FONTS_ON_CLIENT |
2 |
public static final int |
TRANSFER_AS_IMAGE |
0 |
public static final int |
TRANSFER_AS_OBJECT |
1 |
public static final int |
TRANSFER_DECODE_ON_CLIENT |
3 |
public static final int |
ULC_WIDGETS_ON_SERVER |
5 |
public static final int |
VERTICAL_DOUBLE_PAGE |
3 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
ADD |
504 |
public static final int |
ADDHEADERFOOTER |
506 |
public static final int |
ADDVIEW |
700 |
public static final int |
AUTOSCROLL |
8 |
public static final int |
BACK |
702 |
public static final int |
BACKPAGE |
52 |
public static final int |
BITMAP |
2 |
public static final int |
BOOKMARK |
11 |
public static final int |
BUY |
999 |
public static final int |
CASCADE |
21 |
public static final int |
CHANGELINEART |
713 |
public static final int |
CONTINUOUS |
58 |
public static final int |
CONTINUOUS_FACING |
59 |
public static final int |
COPY |
25 |
public static final int |
CURRENTPAGE |
704 |
public static final int |
DELETE |
503 |
public static final int |
DESELECTALL |
27 |
public static final int |
DOCINFO |
9 |
public static final int |
EXIT |
7 |
public static final int |
FACING |
60 |
public static final int |
FBACKPAGE |
51 |
public static final int |
FFORWARDPAGE |
54 |
public static final int |
FIND |
12 |
public static final int |
FIRSTPAGE |
50 |
public static final int |
FORWARD |
701 |
public static final int |
FORWARDPAGE |
53 |
public static final int |
FULLSCREEN |
61 |
public static final int |
GETOUTLINEPANEL |
705 |
public static final int |
GETPAGECOUNTER |
707 |
public static final int |
GETTHUMBNAILPANEL |
706 |
public static final int |
GOTO |
56 |
public static final int |
HANDOUTS |
511 |
public static final int |
HELP |
998 |
public static final int |
HIGHLIGHT |
600 |
public static final int |
IMAGES |
3 |
public static final int |
INFO |
1 |
public static final int |
LASTPAGE |
55 |
public static final int |
MOUSEMODE |
29 |
public static final int |
NEXTDOCUMENT |
17 |
public static final int |
NEXTRESULT |
19 |
public static final int |
NUP |
510 |
public static final int |
OPENFILE |
10 |
public static final int |
OPENURL |
14 |
public static final int |
PAGECOUNT |
703 |
public static final int |
PAGEFLOW |
62 |
public static final int |
PAGEGROUPING |
708 |
public static final int |
PANMODE |
30 |
public static final int |
PDF |
501 |
public static final int |
PREFERENCES |
24 |
public static final int |
PREVIOUSDOCUMENT |
16 |
public static final int |
PREVIOUSRESULT |
18 |
public static final int |
PRINT |
6 |
public static final int |
QUALITY |
250 |
public static final int |
REPLACETEXTCOLOR |
711 |
public static final int |
ROTATE |
502 |
public static final int |
ROTATION |
251 |
public static final int |
RSS |
997 |
public static final int |
SAVE |
5 |
public static final int |
SAVEFORM |
500 |
public static final int |
SCALING |
252 |
public static final int |
SCROLL |
601 |
public static final int |
SECURITY |
505 |
public static final int |
SELECTALL |
26 |
public static final int |
SEPARATECOVER |
32 |
public static final int |
SETCROP |
509 |
public static final int |
SETDISPLAYBACKGROUND |
714 |
public static final int |
SETPAGECOLOR |
709 |
public static final int |
SETREPLACEMENTCOLORTHRESHOLD |
715 |
public static final int |
SETTEXTCOLOR |
712 |
public static final int |
SETUNDRAWNPAGECOLOR |
710 |
public static final int |
SIGN |
512 |
public static final int |
SINGLE |
57 |
public static final int |
SNAPSHOT |
13 |
public static final int |
STAMPIMAGE |
508 |
public static final int |
STAMPTEXT |
507 |
public static final int |
TEXT |
4 |
public static final int |
TEXTSELECT |
31 |
public static final int |
TILE |
22 |
public static final int |
TIP |
20 |
public static final int |
UPDATE |
23 |
public static final int |
UPDATEGUILAYOUT |
28 |
public static final int |
VISITWEBSITE |
15 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
MOUSE_MODE_PANNING |
1 |
public static final int |
MOUSE_MODE_TEXT_SELECT |
0 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
RUNNING_APPLET |
1 |
public static final int |
RUNNING_JSP |
3 |
public static final int |
RUNNING_NORMAL |
0 |
public static final int |
RUNNING_PLUGIN |
4 |
public static final int |
RUNNING_WEBSTART |
2 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final java.lang.String |
PREFERENCES_BEAN |
"jar:/org/jpedal/examples/viewer/res/preferences/Bean.xml" |
public static final java.lang.String |
PREFERENCES_DEFAULT |
"jar:/org/jpedal/examples/viewer/res/preferences/Default.xml" |
public static final java.lang.String |
PREFERENCES_NO_GUI |
"jar:/org/jpedal/examples/viewer/res/preferences/NoGUI.xml" |
public static final java.lang.String |
PREFERENCES_NO_SIDE_BAR |
"jar:/org/jpedal/examples/viewer/res/preferences/NoSideTabOrTopButtons.xml" |
public static final java.lang.String |
PREFERENCES_OPEN_AND_NAV_ONLY |
"jar:/org/jpedal/examples/viewer/res/preferences/OpenAndNavOnly.xml" |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
CURSOR |
1 |
public static final int |
DEFAULT_CURSOR |
3 |
public static final int |
GRAB_CURSOR |
1 |
public static final int |
GRABBING_CURSOR |
2 |
public static final int |
PAN_CURSOR |
4 |
public static final int |
PAN_CURSORB |
11 |
public static final int |
PAN_CURSORBL |
12 |
public static final int |
PAN_CURSORBR |
10 |
public static final int |
PAN_CURSORL |
5 |
public static final int |
PAN_CURSORR |
9 |
public static final int |
PAN_CURSORT |
7 |
public static final int |
PAN_CURSORTL |
6 |
public static final int |
PAN_CURSORTR |
8 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
ROTATE_DEFAULT |
0 |
public static final int |
ROTATE_LEFT |
2 |
public static final int |
ROTATE_NONE |
1 |
public static final int |
ROTATE_RIGHT |
4 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
NO_RESULTS_FOUND |
1 |
public static final int |
SEARCH_COMPLETE_SUCCESSFULLY |
2 |
public static final int |
SEARCH_INCOMPLETE |
4 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
RECTANGLE |
1 |
public static final int |
TABLE |
3 |
public static final int |
WORDLIST |
2 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
ALLOW_ASSEMBLY |
-1 |
public static final int |
ALLOW_COPY |
-1 |
public static final int |
ALLOW_DEGRADED_PRINTING |
-1 |
public static final int |
ALLOW_FILL_IN |
-1 |
public static final int |
ALLOW_MODIFY_ANNOTATIONS |
-1 |
public static final int |
ALLOW_MODIFY_CONTENTS |
-1 |
public static final int |
ALLOW_PRINTING |
-1 |
public static final int |
ALLOW_SCREENREADERS |
-1 |
public static final int |
CERTIFIED_FORM_FILLING |
-1 |
public static final int |
CERTIFIED_FORM_FILLING_AND_ANNOTATIONS |
-1 |
public static final int |
CERTIFIED_NO_CHANGES_ALLOWED |
-1 |
public static final boolean |
IS_DUMMY |
true |
public static final int |
NOT_CERTIFIED |
-1 |
public static final int |
ORDER_ACROSS |
3 |
public static final int |
ORDER_DOWN |
4 |
public static final int |
ORDER_STACK |
5 |
public static final int |
REPEAT_AUTO |
7 |
public static final int |
REPEAT_NONE |
6 |
public static final int |
REPEAT_SPECIFIED |
8 |
public static final int |
ROTATE180 |
2 |
public static final int |
ROTATECLOCKWISE |
0 |
public static final int |
ROTATECOUNTERCLOCKWISE |
1 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
DISPLAY |
0 |
public static final int |
INTERNAL_DRAG_BLANK |
995 |
public static final int |
INTERNAL_DRAG_CURSOR_BOTTOM_LEFT |
998 |
public static final int |
INTERNAL_DRAG_CURSOR_BOTTOM_RIGHT |
999 |
public static final int |
INTERNAL_DRAG_CURSOR_TOP_LEFT |
996 |
public static final int |
INTERNAL_DRAG_CURSOR_TOP_RIGHT |
997 |
public static final int |
PRINTING |
1 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
ColorHandler |
19 |
public static final int |
CurrentOffset |
17 |
public static final int |
CustomFormPrint |
14 |
public static final int |
CustomMessageOutput |
15 |
public static final int |
CustomMouseHandler |
26 |
public static final int |
CustomOutput |
20 |
public static final int |
CustomPrintHintingHandler |
18 |
public static final int |
Display |
16 |
public static final int |
ErrorTracker |
23 |
public static final int |
ExpressionEngine |
6 |
public static final int |
FormFactory |
3 |
public static final int |
FormsActionHandler |
5 |
public static final int |
GlyphTracker |
12 |
public static final int |
ImageHandler |
1 |
public static final int |
JPedalActionHandler |
9 |
public static final int |
JPedalActionHandlers |
24 |
public static final int |
KeyboardReadyHandler |
30 |
public static final int |
MultiPageUpdate |
4 |
public static final int |
RenderChangeListener |
21 |
public static final int |
ShapeTracker |
13 |
public static final int |
StructuredContentHandler |
22 |
public static final int |
SwingContainer |
11 |
public static final int |
ThumbnailHandler |
8 |
public static final int |
UniqueAnnotationHandler |
25 |
public static final int |
USE_XFA |
28 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
SURROUND_BY_ANY_PUNCTUATION |
1 |
public static final int |
USER_DEFINED_LIST_ONLY |
0 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
CASE_SENSITIVE |
2 |
public static final int |
DEFAULT |
0 |
public static final int |
FIND_FIRST_OCCURANCE_ONLY |
4 |
public static final int |
HIGHLIGHT_ALL_RESULTS |
16 |
public static final int |
MUTLI_LINE_RESULTS |
8 |
public static final int |
USE_REGULAR_EXPRESSIONS |
32 |
public static final int |
WHOLE_WORDS_ONLY |
1 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final boolean |
isMultiThreaded |
false |
public static final long |
time |
14400000L |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
ALL_PAGES |
8 |
public static final int |
EVEN_PAGES_ONLY |
32 |
public static final int |
ODD_PAGES_ONLY |
16 |
public static final int |
PAGE_SCALING_FIT_TO_PRINTER_MARGINS |
1 |
public static final int |
PAGE_SCALING_NONE |
0 |
public static final int |
PAGE_SCALING_REDUCE_TO_PRINTER_MARGINS |
2 |
public static final int |
PRINT_PAGES_REVERSED |
64 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
FOCUS_EVENT |
6 |
public static final int |
MOUSECLICKED |
3 |
public static final int |
MOUSEENTERED |
4 |
public static final int |
MOUSEEXITED |
5 |
public static final int |
MOUSEPRESSED |
1 |
public static final int |
MOUSERELEASED |
2 |
public static final int |
NOMESSAGE |
0 |
public static final int |
REJECTKEY |
1 |
public static final int |
STOPPROCESSING |
2 |
public static final int |
TODO |
-1 |
public static final int |
VALUESCHANGED |
3 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
annotation |
10 |
public static final int |
checkboxbutton |
9 |
public static final int |
combobox |
2 |
public static final int |
HTML |
3 |
public static final int |
list |
1 |
public static final int |
multilinepassword |
6 |
public static final int |
multilinetext |
5 |
public static final int |
pushbutton |
7 |
public static final int |
radiobutton |
8 |
public static final int |
signature |
11 |
public static final int |
singlelinepassword |
4 |
public static final int |
singlelinetext |
3 |
public static final int |
SVG |
4 |
public static final int |
SWING |
1 |
public static final int |
ULC |
2 |
public static final int |
unknown |
-1 |
JPedal 5.06b01 ACCCCA


{%- include includes/w3.css -%}
{% include includes/nav.html -%} {{ content }} {% include includes/footer.html -%}


Allow users to customise the behavior of an extension
by providing an options page.
A user can view an extension's options by
right-clicking the extension icon in the toolbar then selecting options
or by navigating to
the extension management page
at chrome://extensions
,
locating the desired extension,
clicking Details,
then selection the options link.
<!DOCTYPE html>  <title>My Test Extension Options</title>  Favorite color: <select id="color"> <option value="red">red</option> <option value="green">green</option> <option value="blue">blue</option> <option value="yellow">yellow</option> </select>  <input type="checkbox" id="like"> I like colors.

 <button id="save">Save</button>
Save a user's preferred options across devices by using the $(ref:storage.sync) API.
// Saves options to chrome.storage function save_options() { var color = document.getElementById('color').value; var likesColor = document.getElementById('like').checked; chrome.storage.sync.set({ favoriteColor: color, likesColor: likesColor }, function() { // Update status to let user know options were saved. var status = document.getElementById('status'); status.textContent = 'Options saved.'; setTimeout(function() { status.textContent = ''; }, 750); }); } // Restores select box and checkbox state using the preferences // stored in chrome.storage. function restore_options() { // Use default value color = 'red' and likesColor = true. chrome.storage.sync.get({ favoriteColor: 'red', likesColor: true }, function(items) { document.getElementById('color').value = items.favoriteColor; document.getElementById('like').checked = items.likesColor; }); } document.addEventListener('DOMContentLoaded', restore_options); document.getElementById('save').addEventListener('click', save_options);
There are two available types of extension options pages, full page and embedded. The type of options is determined by how it is declared in the manifest.
An extension's options page will be displayed in a new tab.
The options HTML file
is listed registered under the options_page
field.
{ "name": "My extension", ... "options_page": "options.html", ... }
Embedded options allows users to adjust extension options without navigating
away from the extensions management page inside an embedded box.
To declare an embedded options,
register the HTML file under the options_ui
field in the extension manifest,
with the open_in_tab
key set to false.
{ "name": "My extension", ... "options_ui": { "page": "options.html", "open_in_tab": false }, ... }
page
(string)
Path to the options page, relative to the extension's root.
open_in_tab
(boolean)
Specify as false
to declare an embedded options page.
If true
,
the extension's options page will be opened in a new tab
rather than embedded in chrome://extensions.
Options pages embedded inside chrome://extensions have some subtle behavior differences related to not being hosted inside their own tabs.
An extension can link directly to the options page by calling
chrome.runtime.openOptionsPage()
.
<button id="go-to-options">Go to options</button>
document.querySelector('#go-to-options').addEventListener(function() { if (chrome.runtime.openOptionsPage) { chrome.runtime.openOptionsPage(); } else { window.open(chrome.runtime.getURL('options.html')); } });
Extension embedded options page code is not hosted inside a tab, affecting how the $(ref:tabs Tabs API) can be used:
Using $(ref:runtime.connect) and $(ref:runtime.sendMessage) is a work around to these restrictions, if the options page does need to manipulate the containing tab.
If an extension's options page sends a message using $(ref:runtime.connect) or $(ref:runtime.sendMessage), the $(ref:runtime.MessageSender.tab Sender's tab) will not be set, and the $(ref:runtime.MessageSender.url Sender's URL) will be the options page URL.
The embedded options should automatically determine its own size based on the page content. However, the embedded box may not find a good size for some types of content. This problem is most common for options pages that adjust their content shape based on window size.
If this is an issue, provide fixed minimum dimensions for the options page to ensure that the embedded page will find an appropriate size.


--- title: 'Spatial data in R: Dividing raster layers into equal-area rings' author: Yang Liu date: '2018-07-20' slug: spatial-data-in-r-dividing-raster-layers-into-equal-area-rings categories: - Data Visualization - Spatial Data tags: - R - Geographic - Spatial output: blogdown::html_page: toc: true ---
This data visualization example include:
* Import .img
file as a raster
* Turn raster into a data.frame of points (coordinates) and values
* Dividing the points into 100 equal-area rings
* Calculate Built-up Area/Urban Extent for each ring
* Turn dataframe into raster
* Plot multiple figures on the same color scale
list.of.packages <- c("raster", "rgdal", "Hmisc", "plyr", "RColorBrewer", "googledrive")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
suppressPackageStartupMessages({
library('raster') # obtain raster from GIS image file, and plot
library('rgdal') # readOGR: read ArcGIS vector maps into Spatial objects
library('Hmisc') # cut2: cut vector into equal-length
library('plyr') # join
library('RColorBrewer') # for `brewer.pal` in ggplot2
library('knitr') # kable
})
options(digits = 4)
# Where are all the data files located:
parent_dir <- c("D:/OneDrive - nyu.edu/NYU Marron/180716_Draw Circle/Data/")
# Get all the folder names (names of the cities) in the directory, used to scan all the cities
city_list <- list.files(parent_dir)
# If use Hong Kong as an example
city1 <- city_list[6]
newdir <- paste(parent_dir, city1, sep = "")
image <- raster(paste(newdir, c("./city_urbFootprint_clp_t3.img"), sep = ""))
# A point that shows the center of the city
cbd <- readOGR(dsn = newdir, layer = paste(city1, "_CBD_Project", sep=""))
## OGR data source with driver: ESRI Shapefile
## Source: "D:\OneDrive - nyu.edu\NYU Marron\180716_Draw Circle\Data\Hong_Kong", layer: "Hong_Kong_CBD_Project"
## with 1 features
## It has 6 fields
## Integer64 fields read as strings: Id
cbdpoint <- SpatialPoints(cbd)
city1 <-"Hong_Kong"
library(googledrive)
temp <- tempfile(fileext = ".zip")
dl <- drive_download(as_id("1z-aD2orN2k2BINkDD6whEhHFga_4HIu8"), path = temp, overwrite = TRUE)
out <- unzip(temp, exdir = tempdir())
image <- raster(out[1])
cbdpoint <- SpatialPoints(readOGR(dsn = paste(tempdir(),"\\Hong_Kong",sep = ""),
layer = "Hong_Kong_CBD_Project"))
rasterToPoints
# mydata_HK contains coordinate (x,y) and category (type)
mydata_HK <- as.data.frame(rasterToPoints(image))
names(mydata_HK) <- c("x", "y", "type")
sp::spDistsN1
# calculate distance to the cbd from every point
pts <- as.matrix(mydata_HK[,1:2])
mydata_HK$cbd_dist <- spDistsN1(pts, cbdpoint, longlat = F)
# library('Hmisc') # cut2
mydata_HK$ring <- as.numeric(cut2(mydata_HK$cbd_dist,g = 100)) # get 1:100
mydata_HK$type <- as.factor(mydata_HK$type)
mydata_HK$ring <- as.factor(mydata_HK$ring)
# Function to get saturation, as the raster have 7 layers, 1 to 3 belong to built-up area
get_sat <- function(x){
x <- as.factor(x)
# (1 + 2 + 3) / (1 + 2 + 3 + 4 + 5 + 6 + 7)
sum(x==1|x==2|x==3)/length(x)
}
# get saturation by rings
sat_output <- aggregate(mydata_HK$type, by = list(mydata_HK$ring), FUN = get_sat)
names(sat_output) <- c("ring", "ring_saturation")
# join back to mydata_HK2 so we can later plot by values of ring_saturation
mydata_HK2 <- join(mydata_HK, sat_output, by = "ring")
kable(head(mydata_HK2))
| x | y | type | cbd_dist | ring | ring_saturation |
|---|---|---|---|---|---|
| 203936 | 2478244 | 3 | 11970 | 94 | 0.5318 |
| 203966 | 2478244 | 4 | 11961 | 94 | 0.5318 |
| 203996 | 2478244 | 4 | 11952 | 93 | 0.5721 |
| 204026 | 2478244 | 3 | 11944 | 93 | 0.5721 |
| 204056 | 2478244 | 4 | 11935 | 93 | 0.5721 |
| 204086 | 2478244 | 4 | 11926 | 93 | 0.5721 |
mydata_HK2
) into raster using rasterFromXYZ
r1 <- rasterFromXYZ(mydata_HK2)
plot(r1)
# choose a color scale from `RColorBrewer`
color_scale <- brewer.pal(n = 10, name = "RdYlGn")
myPalette <- colorRampPalette(rev(color_scale)) # reverse the order so highly value ~ dark red
# set col and breaks to align color scale across figures
plot(r1$ring_saturation, col=myPalette(70), breaks = c(30:100)/100,
legend=FALSE, main = city1)
plot(cbdpoint, add = TRUE, size = 3) # drawn on top of a map using `add = TRUE`
# if need to output the raster
# writeRaster(r1, paste(raster_dir, city1, sep = ""), format = "HFA", overwrite=TRUE)
# To preview the color panel:
# display.brewer.pal(n = 12, name = 'RdYlGn')
# Min. 1st Qu. Median Mean 3rd Qu. Max.
# 0.305 0.545 0.646 0.656 0.771 0.999
(Summarized by Alejandro Blei, my colleague)
1. Take the file: city_urbFootprint_clp_t3.img
. This file is made up of many pixels. Pixels with values 1-3 = built up, pixels with values 4-6 = open space, and pixels with value 7 = water. In other words, 1 - 3 = built up, and 4 - 7 = not built.
2. Convert the pixels to points. This operation preserves the value associated with the pixel.
3. Calculate the distance from each point to the CBD.
4. Create 10 groups from these pixels, where each group has the same area. These groups radiate outward from the CBD. Since each pixel has the same size, all we need are ten groups with the same number of pixels, where the pixels in one group are closer to the CBD than the pixels in the next group.
5. Once we have the groups, we can calculate the saturation value in each group. Saturation is Built Up / (Built Up - Open Space), in other words, saturation is Pixels (1 + 2 + 3) / (1 + 2 + 3 + 4 + 5 + 6 + 7). Each of the ten groups now has a saturation value associated with it.
# Fragmentation: Saturation (Built-up Area/Urban Extent) in each ring
# how about 100 rings
# install.packages('raster')
library('raster') # obtain raster from GIS image file, and plot
library('rgdal') # readOGR: read ArcGIS vector maps into Spatial objects
library('Hmisc') # cut2
library('plyr') # join
library('RColorBrewer') # for `brewer.pal` in ggplot2
library('knitr') # kable
options(digits = 4)
# get saturation
get_sat <- function(x){
x <- as.factor(x)
# (1 + 2 + 3) / (1 + 2 + 3 + 4 + 5 + 6 + 7)
sum(x==1|x==2|x==3)/length(x)
}
parent_dir <- c("D:/OneDrive - nyu.edu/NYU Marron/180716_Draw Circle/Data/")
# Get all the folder names (names of the cities) in the directory
city_list <- list.files(parent_dir)
sat_out <- data.frame()
par(mar = c(1,2,1,0), bty="n") # c(bottom, left, top, right)
layout(matrix(c(1:10),ncol=2, byrow = T))
# length(city_list)
for (i in 1:10){
city1 <- city_list[i]
newdir <- paste(parent_dir, city1, sep = "")
image <- raster(paste(newdir, c("./city_urbFootprint_clp_t3.img"), sep = ""))
# mydata: df that contains coordinate and category
mydata <- as.data.frame(rasterToPoints(image))
names(mydata) <- c("x", "y", "type")
pts <- as.matrix(mydata[,1:2])
# cbd
cbd <- readOGR(dsn = newdir, layer = paste(city1, "_CBD_Project", sep=""))
cbdpoint <- SpatialPoints(cbd)
# distance to the cbd
mydata$cbd_dist <- spDistsN1(pts, cbdpoint, longlat = F)
# library('Hmisc') # cut2
mydata$ring <- as.numeric(cut2(mydata$cbd_dist,g = 100))
mydata$type <- as.factor(mydata$type)
mydata$ring <- as.factor(mydata$ring)
sat_output <- aggregate(mydata$type, by = list(mydata$ring), FUN = get_sat)
sat_output$City <- city1
sat_output$City_Saturation <- get_sat(mydata$type)
names(sat_output) <- c("ring", "ring_saturation","city", "city_saturation")
sat_out <- rbind(sat_out, sat_output)
# draw the figure ---------------------------------------------------------
mydata2 <- join(mydata, sat_output, by = "ring")
r1 <- rasterFromXYZ(mydata2)
# writeRaster(r1, paste(raster_dir, city1, sep = ""), format = "HFA", overwrite=TRUE)
# To preview the color panel:
# display.brewer.pal(n = 12, name = 'RdYlGn')
color_scale <- brewer.pal(n = 10, name = "RdYlGn")
myPalette <- colorRampPalette(rev(color_scale))
plot(r1$ring_saturation, col=myPalette(70), breaks = c(30:100)/100,
legend=FALSE, main = city1)
plot(cbdpoint, add = TRUE, size = 3) # drawn on top of a map using `add = TRUE`
}
# Some visulization options -----------------------------------------------------------
id <- "1DNyQLX0apRVWmRC1xKhpqZLE6SLcQF5p" # google file ID
sat <- read.csv(sprintf("https://docs.google.com/uc?id=%s&export=download", id))
sat$idx <- rep(c(1:100),10)
# linear regression smoothing
ggplot(sat, aes(x=idx, y=ring_saturation)) +
geom_point(size = 0.5, color = 'blue') +
geom_smooth(method = 'lm')+
theme_classic() +
geom_hline(yintercept = 0) +
scale_y_continuous(limits = c(0,1)) +
labs(x = "Equal-Area Rings from CBD", y = "Average Built-up Area/Urban Extent") +
ggtitle("Average Saturation in the 100 Rings")
## some other options
# one plot for each city
par(mar = rep(2,4), bty="n")
layout(matrix(c(1:10),ncol=2, byrow = T))
for (i in 1:10){
sat_sub <- subset(sat, city == city_list[i])
plot(x = sat_sub$idx, y = sat_sub$ring_saturation, type = "l",
xlab=c("Ring from CBD"), ylab =c("Built-up Area/Urban Extent"),
main = city_list[i])
}
# a barchart for each ring?
sat$weight_blank <- 1
source("D:/OneDrive - nyu.edu/NYU Marron/R/Get Weighted SE and CI.R")
Mean_byGroup <- get_WM_and_CI2(sat, "idx", "ring_saturation", "weight_blank")
bar_width <- 0.8
ggplot(Mean_byGroup, aes(x=idx, y=wm,
ymin=CI_low, ymax=CI_high)) +
geom_bar(stat='identity', position = position_dodge(), width = bar_width, alpha=0.8)+
geom_errorbar (width=bar_width-0.1, lwd=1, position=position_dodge(bar_width))+
labs(x = "Ten Rings from CBD", y = "Average Built-up Area/Urban Extent") +
ggtitle("Average Saturation in Each Ring")+
theme_classic() +
geom_hline(yintercept = 0)
# scatterplot all the points for ten cities
ggplot(sat, aes(x=idx, y=ring_saturation, color = city)) +
geom_point(size = 1)
labs(x = "Ten Rings from CBD", y = "Built-up Area/Urban Extent") +
ggtitle("Saturation in Each Ring of Ten Cities")+
theme_classic()


Grandeur of rulers, glory of its past, glimpse of their enigmatic way of living, are still alive in the form of palaces like Chowmahalla Palace, a place worth visiting when on a Hyderabad tour.
Built in the 18th century, almost 200 years ago, the Chowmahalla Palace is one of the popular sightseeing places in Hyderabad. The literal meaning of this place is “Four Palaces” with “Chow” means four in Urdu and “Mahalat” which is the plural of “Mahalel” meaning palaces. Chowmahalla palace is said to resemble Shah Palace of Tehran in Iran.
The construction of Chowmahalla Palace was mainly completed between 1857 to 1869 during the rule of fifth Nizam, Afzar-ud-Daulah, Asaf Jav V. However, its building is mostly credited to Nizam Salabat Jang in 1790. The Palace originally covered 45 acres which extended from the Laad Bazaar on the north to the Aspan Chowk Road on the south. Now, the total remained area of the palace is close to 12 acres. The Chowmahalla Palace is consisted of two courtyards which are divided into the northern courtyard and the southern courtyard. The southern courtyard of the palace has four palaces which are namely Afzal Mahal, Tahniyat Mahal, Mahtab Mahal, and Aftab Mahal. The Aftab Mahal is a two storied building and is the biggest of all the four. The northern courtyard which has been open to public, houses Bara Imam, a long corridor with many rooms on the eastern side, which was once the administrative wing. Another captivating feature of this courtyard is the Shishe-Alat. This was used to receive guests and public figures.
The Chowmahalla Palace has Clock Tower, Council Hall and Roshan Bungalow inside it. The Roshan Bungalow has been named after Roshan Begum who was the mother of sixth Nizam. Khilwat Clock, which is famous for ticking since the construction of the palace, can be seen inside the Clock Tower. At the Council Hall, various manuscripts and rare books which were a personal collections of the Nizam, have been kept.
The heart of the palace is called as Khilwat Mubarak. This grand Durbar hall is undeniably the best part of the palace. Mughal domes, imposing arches and an intricate Persian work create a masterpiece. Inside the Durbar Hall, there is platform made up of marble. It is on this platform where the royal seat, Takht-e-Nishan was laid.
It is said that Chowmahalla Palace used to have around 7000 attendants on any given day. For its grandeur and c harm, it has been often compared to the Enchanted Gardens of the Arabian Nights for its grandeur.
The palace was restored by the Government and was opened to the public in the year of 2005. One can visit the palace throughout the week except on Friday and national holidays. Chowmahalla Palace timings are from 10 am to 5 pm in evening. The entry fee of Chowmahalla palace is only Rs.40 per person; hence you can plan your visit to this majestic palace without shelling out a lot of money.


Shine, Perishing Republic
by Matt
While this America settles in the mould of its vulgarity, heavily thickening / to empire
And protest, only a bubble in the molten mass, pops and sighs out, and the / mass hardens,
I sadly smiling remember that the flower fades to make fruit, the fruit rots / to make earth.
Last Tuesday was primary day in North Carolina, so I went out to cast my vote for Bernie Sanders. It didn’t do much good here, where Hillary Clinton was heavily favored to win the Democratic primary. Hillary Clinton did win here, and in every other race on Tuesday, though by a very narrow margin in Illinois and Missouri. Throughout the campaign so far Sanders has done much better than initially expected, and even collected a big surprise win in Michigan, so I still believe anything is possible at this point.
But my hope and optimism surrounding a Sanders presidency is tempered with a certain amount of trepidation at how little a Sanders administration might actually be able to accomplish in a nation as hostile and divided as the United States has become in recent years, and maybe for other reasons as well, which I’ll get to later.
After the eight-year long spree that encompassed the George W. Bush administration’s imperial resource-grab, creation of the homeland security industrial complex, and accompanying rollback of constitutional rights, culminating with the economic meltdown of 2008, Obama’s mandate of “Hope and Change” seemed positively revolutionary, and so he easily won the presidency. Very little changed, however, during Obama’s soon-to-be eight-year administration. If anything, it was a continuation of all the disturbing trends—failed military interventions and a pointlessly antagonistic and bellicose foreign policy stance, extrajudicial imprisonments and torture, and a blind eye turned toward regulating the unprecedented excesses of runaway capitalism vis-à-vis Wall Street and corporate America—that distinguished the previous reign of the Neo-cons.
Obama’s meteoric rise to the presidency from relative obscurity along with the millions of dollars he received in campaign funding from Wall Street and other special interests suggest to my somewhat cynical mind that before he was ever elected, he was already in the pocket of the monied interests and deeper forces that have for some time now controlled the puppet show that I suspect the U.S. presidency has become.

And so it’s for these reasons that I worry about the consequences of a Sanders victory. I don’t question his integrity or his ideals or his ability as a leader; on the contrary, I’m sure he’d be true to his convictions and make every effort to bring about the changes he’s campaigned on. Rather, I question the validity and the actual potency of the Office of the Presidency in this day and age. I worry about the ensuing death of idealism and democracy that would most certainly result from a hamstrung presidency. I can’t imagine a more ironically tragic turn of events than for a Sanders presidency to be the final nail in the coffin of democracy, the event that might ultimately lead to the breakup of the United States.
Sanders embodies, to me at least, the best ideals of Franklin Roosevelt’s New Deal democracy, which arguably saved capitalism from itself and led to a period of greater social mobility and relative income equality. Whether or not such a golden age of equality and prosperity is possible here again in the United States, I have my doubts. But in any case, the commitment of Bernie Sanders and Elizabeth Warren and a few others to these ideals, which have been largely abandoned by the mainstream Democratic Party, is at least an honest step in the right direction.
For the last 25 years or so, most mainstream Democrats, by way of contrast, have been almost indistinguishable in their positions from moderate Republicans. In fact, as many have noted, the sharp drift to the right in Republican politics now so evident can be traced back to the Clinton administration’s annexation of positions formerly held by moderate-to-conservative Republicans, i.e., free trade, deregulation, equivocation on social issues, etc.
The fealty of the Democratic Party to the billionaire class and the interests of neo-liberal economics and globalized trade began with Bill Clinton’s passage of NAFTA, GATT, and the WTO. These free-trade agreements resulted in the offshoring of many American jobs and the further decline of unions and the social mobility they represented, even while it offered a quick fix, a taste of ersatz prosperity for all, through the flood of suddenly cheap consumer goods, made possible in large part by the fortuitous and historically anomalous conditions of cheap oil and easy credit in the 1990s. The Obama administration have done their part at promoting free trade through the signing of the Trans Pacific Partnership, which is mostly a gift to American mega-corporations at the expense of everyone else.
It is this unsustainable and planetarily devastating orgy of consumption and increasing concentration of wealth from the many to the few that Dick Cheney has characterized as the “non-negotiable” American way of life, and it is what both Hillary Clinton and Donald Trump stand for, each in their own way.
Hillary Clinton represents the impossible and unsustainable maintenance of the status quo, of keeping the SUVs and Priuses of upper-middle-class suburbanite soccer moms driving to the Whole Foods for more cruelty-free meat and non-GMO snack foods, even while the former heirs to middle class prosperity in flyover country languish on unemployment, fight to make ends meet, or are busy drinking themselves to death, overdosing, or committing outright suicide at epidemic rates. Though she’s received millions of dollars in funding and speaking fees from Wall Street banks and big corporations, Hillary would like us to believe that somehow she’s not beholden to them and will fight for the interests of the 99%. I don't believe her for a second.
Hillary Clinton, like her husband, has never proven herself to be trustworthy. Even as she is campaigning for the Democratic nomination, she is under investigation by the FBI for alleged security breaches involving her private email server. Most polls also show Sanders faring much better than Clinton in a general election against Trump. But all of this is almost beside the point for the Democratic Party establishment, who insist on her inevitability as the next Democratic presidential nominee.
Donald Trump channels the anger and betrayal felt by many middle aged white people--the same ones who, when not self-destructing, are only too happy to blame the Democrats (rightly or wrongly) for their misfortune, along with Mexicans, Muslims, the Chinese, and anyone else Trump can think to cast as a scapegoat. Lost on them somehow is the fact that people like Trump, a representative of the billionaire class, are the very people they ought to blame for their economic misfortunes.
It is cut-throat businessmen like Trump, after all, who have always been only too happy to downsize, to outsource jobs or hire immigrant labor, if it means greater profits for them and their shareholders. He has never explained how exactly he intends to “make America great again,” and it doesn’t really matter to his followers, who love him not for the logic of his pronouncements but what he stands for, which is everything ugly, petty, and crass in American life. The real estate developer turned reality TV star has become a perverted model of what it means to be successful in America. Trump is the sneering, ostentatious embodiment of Ayn Rand’s ethos of greed, self-interest, and avarice. In spite of his bigotry, xenophobia, and frequent incitements of his supporters to violence, many so-called Christians are apparently supporting him in the race at this point.
The more Donald Trump succeeds in the primaries, the more obvious it becomes from his behavior and his utterances that he is unfit to hold higher office. I completely agree with this assessment, and many are now worrying about what could happen if he gets the Republican nomination. James Howard Kunstler has speculated on the possibility of a military coup or at least a constitutional crisis, should Trump win the general election. It is a measure of how perverted and twisted our so-called representative democracy has become that a military coup would be more preferable to some (as it is to me) than the idea of a Trump presidency.
Of course, the pursuit of infinite economic growth and endless prosperity is madness in its own right, and the illusion of it is increasingly difficult to sustain, even with the manipulations of currencies, markets, labor statistics, and the media. Both Trump and Clinton are only too happy to tell the American people the fairy tales they long to hear, like Reagan’s “Morning in America,” telling us how they will “make America great again,” or even worse “that America has always been great,” if only we’ll elect them to office.
It would be fitting for one of these two shills to be holding office to bear the consequences when the whole edifice of lies collapses, as surely it soon will. But of course, it will be the American people who will bear the consequences, and it will be then that we will most sorely need a real leader to move the nation forward and to calm an outraged and aggrieved populace.
To whatever extent the Office of the Presidency still reflects the will in good faith of a commander-in-chief, subordinate to no one but the American people, I hope for the sake of the American people that the next person to hold that office is Bernie Sanders.
Subscribe via RSS


jl777c
12-Sep-18 07:11 AM
all this talk about airdrops and there is no way to do a snapshot, so there wont be any airdrops
adding dPoW will require changing the consensus rules and it is not clear it will happen anytime soon
ZEC also only updated to allow sapling update, the true sapling isnt here yet
so, for the foreseeable future PIRATE will be as it is and it has enough of a hashrate to be securing itself for now, but as with CHIPS when the mining rewards get too small, there wont be and there will be a problem in 2 to 3 years
at that point it can change to a verushash or maybe some other solution, 2 years is a very long time


Command was run
with root privileges. I'm sure about that.
23:03
I've update the
description so it's more obviously now
FYI
https://askubuntu.com/a/700266/510172
Check the line above (it ends with a # so, I'm running it as root )
# npm install -g @vue/devtools


--- title: "WREATH WORKSHOPS" date: "2000-01-01 19:12:06 -06:00" categories: - adult - winter subtitle: "" layout: "events" event-image: "wreath-workshop.jpg" event-dates: "December 6 - 8" event-location: "Red Butte Garden Dumke Horticulture Operations Center" button-type: "register" tickets-link: "" registration-info: "Class Limit: 35" instructor-info: "RBG Staff" member-cost: "$60" public-cost: "$75" event-notes: "" tickets-button: "hide" published: false ---
REGISTRATION REQUIRED - Registration begins October 1 at 9AM!
All wreath workshops are sold out. You may be placed on a waiting list by submitting your contact info HERE.
Start off your holiday season by creating a fresh wreath for your front door at our annual wreath-making workshop. Workshop materials include fresh greens, cones, fruits, assorted decorations, and ribbon that will be used to fill a 16” wreath frame. Attendees are encouraged to bring unusual greens or your favorite ornaments to include. Also bring gloves, scissors, hand pruners, and a basket. Classes are held at the Garden's Kay and Zeke Dumke, Jr. Horticulture Operations Center.


The "Edit Folders" page displays a list of all existing message folders and gives the user the option of creating, renaming, or deleting folders. To create a new folder, just type one into the empty field. To rename an existing folder, just type over its name. And to delete a folder, just clear the text field the name is in.


|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instrumentation
This class provides services needed to instrument Java programming language code. Instrumentation is the addition of byte-codes to methods for the purpose of gathering data to be utilized by tools. Since the changes are purely additive, these tools do not modify application state or behavior. Examples of such benign tools include monitoring agents, profilers, coverage analyzers, and event loggers.
The only way to access an instance of the Instrumentation
interface is for the JVM to be launched in a way that indicates
the agent class - see
the package specification.
The Instrumentation
instance is passed
to the premain
method of the agent class.
Once an agent acquires the Instrumentation
instance,
the agent may call methods on the instance at any time.
| Method Summary | |
|---|---|
void |
addTransformer(ClassFileTransformer transformer)
Registers the supplied transformer. |
Class[] |
getAllLoadedClasses()
Returns an array of all classes currently loaded by the JVM. |
Class[] |
getInitiatedClasses(ClassLoader loader)
Returns an array of all classes for which loader is an initiating loader. |
long |
getObjectSize(Object objectToSize)
Returns an implementation-specific approximation of the amount of storage consumed by the specified object. |
boolean |
isRedefineClassesSupported()
Returns whether or not the current JVM configuration supports redefinition of classes. |
void |
redefineClasses(ClassDefinition[] definitions)
Redefine the supplied set of classes using the supplied class files. |
boolean |
removeTransformer(ClassFileTransformer transformer)
Unregisters the supplied transformer. |
| Method Detail |
|---|
void addTransformer(ClassFileTransformer transformer)
addTransformer
will always see the class files before any external JVMTI ClassFileLoadHook event listener does.
This method is intended for use in instrumentation, as described in the class specification.
transformer
- the transformer to register
NullPointerException
- if passed a null
transformerboolean removeTransformer(ClassFileTransformer transformer)
transformer
- the transformer to unregister
NullPointerException
- if passed a null
transformerboolean isRedefineClassesSupported()
redefineClasses(java.lang.instrument.ClassDefinition[])
void redefineClasses(ClassDefinition[] definitions) throws ClassNotFoundException, UnmodifiableClassException
If a redefined method has active stack frames, those active frames continue to run the bytecodes of the original method. The redefined method will be used on new invokes.
This method does not cause any initialization except that which would occur under the customary JVM semantics. In other words, redefining a class does not cause its initializers to be run. The values of static variables will remain as they were prior to the call.
Instances of the redefined class are not affected.
Registered transformers will be called before the redefine operation is applied.
The redefinition may change method bodies, the constant pool and attributes. The redefinition must not add, remove or rename fields or methods, change the signatures of methods, or change inheritance. These restrictions maybe be lifted in future versions.
A zero-length definitions
array is allowed, in this case, this
method does nothing.
If this method throws an exception, no classes have been redefined.
This method is intended for use in instrumentation, as described in the class specification.
definitions
- array of classes to redefine with corresponding definitions
ClassNotFoundException
- if a specified class cannot be found
UnmodifiableClassException
- if a specified class cannot be modified
UnsupportedOperationException
- if the current configuration of the JVM does not allow
redefinition (isRedefineClassesSupported()
is false) or the redefinition made unsupported changes
ClassFormatError
- if the data did not contain a valid class
NoClassDefFoundError
- if the name in the class file is not equal to the name of the class
UnsupportedClassVersionError
- if the class file version numbers are not supported
ClassCircularityError
- if the new classes contain a circularity
LinkageError
- if a linkage error occurs
NullPointerException
- if the supplied definitions array or any of its components is null
.isRedefineClassesSupported()
,
addTransformer(java.lang.instrument.ClassFileTransformer)
,
ClassFileTransformer
Class[] getAllLoadedClasses()
Class[] getInitiatedClasses(ClassLoader loader)
loader
is an initiating loader.
If the supplied loader is null
, classes initiated by the bootstrap class
loader are returned.
loader
- the loader whose initiated class list will be returned
long getObjectSize(Object objectToSize)
objectToSize
- the object to size
NullPointerException
- if the supplied Object is null
.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


CUDA-accelerated point cloud processing.
More...
#include <cudaPointCloud.h>
|
| struct cudaPointCloud::Vertex | __attribute__ ((packed)) |
| |
| | ~cudaPointCloud () |
| | Destructor. More...
|
| |
| bool | Reserve (uint32_t maxPoints) |
| | Allocate and reserve memory for the max number of points. More...
|
| |
| void | Free () |
| | Free the memory being used to store the point cloud. More...
|
| |
| void | Clear () |
| | Clear the points, but keep the memory allocated. More...
|
| |
| bool | Extract (float *depth, float4 *rgba, uint32_t width, uint32_t height) |
| | Extract point cloud from depth map and optional RGBA image. More...
|
| |
| bool | Extract (float *depth, uint32_t depth_width, uint32_t depth_height, float4 *rgba, uint32_t color_width, uint32_t color_height) |
| | Extract point cloud from depth map and optional RGBA image. More...
|
| |
| uint32_t | GetNumPoints () const |
| | Retrieve the number of points being used. More...
|
| |
| uint32_t | GetMaxPoints () const |
| | Retrieve the max number of points in memory. More...
|
| |
| size_t | GetSize () const |
| | Retrieve the size in bytes currently being used. More...
|
| |
| size_t | GetMaxSize () const |
| | Retrieve the maximum size in bytes of the point cloud. More...
|
| |
| Vertex * | GetData () const |
| | Retrieve memory pointer to point cloud data. More...
|
| |
| Vertex * | GetData (size_t index) const |
| | Retrieve memory pointer to a specific point. More...
|
| |
| bool | HasRGB () const |
| | Does the point cloud have RGB data? More...
|
| |
| bool | Render () |
| | Render the point cloud with OpenGL. More...
|
| |
| bool | Save (const char *filename) |
| | Save point cloud to PCD file. More...
|
| |
| bool | SetCalibration (const char *filename) |
| | Set the intrinsic camera calibration. More...
|
| |
| void | SetCalibration (const float K[3][3]) |
| | Set the intrinsic camera calibration. More...
|
| |
| void | SetCalibration (const float2 &focalLength, const float2 &principalPoint) |
| | Set the intrinsic camera calibration. More...
|
| |
CUDA-accelerated point cloud processing.
◆ ~cudaPointCloud()
| cudaPointCloud::~cudaPointCloud |
( |
| ) |
|
◆ cudaPointCloud()
| cudaPointCloud::cudaPointCloud |
( |
| ) |
|
|
protected |
◆ __attribute__()
◆ allocBufferGL()
| bool cudaPointCloud::allocBufferGL |
( |
| ) |
|
|
protected |
◆ allocDepthResize()
| bool cudaPointCloud::allocDepthResize |
( |
size_t |
size | ) |
|
|
protected |
◆ Clear()
| void cudaPointCloud::Clear |
( |
| ) |
|
Clear the points, but keep the memory allocated.
◆ Create()
◆ Extract() [1/2]
| bool cudaPointCloud::Extract |
( |
float * |
depth, |
|
|
float4 * |
rgba, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
Extract point cloud from depth map and optional RGBA image.
◆ Extract() [2/2]
| bool cudaPointCloud::Extract |
( |
float * |
depth, |
|
|
uint32_t |
depth_width, |
|
|
uint32_t |
depth_height, |
|
|
float4 * |
rgba, |
|
|
uint32_t |
color_width, |
|
|
uint32_t |
color_height |
|
) |
| |
Extract point cloud from depth map and optional RGBA image.
◆ Free()
| void cudaPointCloud::Free |
( |
| ) |
|
Free the memory being used to store the point cloud.
◆ GetData() [1/2]
| Vertex* cudaPointCloud::GetData |
( |
| ) |
const |
|
inline |
Retrieve memory pointer to point cloud data.
◆ GetData() [2/2]
| Vertex* cudaPointCloud::GetData |
( |
size_t |
index | ) |
const |
|
inline |
Retrieve memory pointer to a specific point.
◆ GetMaxPoints()
| uint32_t cudaPointCloud::GetMaxPoints |
( |
| ) |
const |
|
inline |
Retrieve the max number of points in memory.
◆ GetMaxSize()
| size_t cudaPointCloud::GetMaxSize |
( |
| ) |
const |
|
inline |
Retrieve the maximum size in bytes of the point cloud.
◆ GetNumPoints()
| uint32_t cudaPointCloud::GetNumPoints |
( |
| ) |
const |
|
inline |
Retrieve the number of points being used.
◆ GetSize()
| size_t cudaPointCloud::GetSize |
( |
| ) |
const |
|
inline |
Retrieve the size in bytes currently being used.
◆ HasRGB()
| bool cudaPointCloud::HasRGB |
( |
| ) |
const |
|
inline |
Does the point cloud have RGB data?
◆ Render()
| bool cudaPointCloud::Render |
( |
| ) |
|
Render the point cloud with OpenGL.
◆ Reserve()
| bool cudaPointCloud::Reserve |
( |
uint32_t |
maxPoints | ) |
|
Allocate and reserve memory for the max number of points.
- Note
- Memory is reserved automatically by Extract(), but if you know in advance the maximum number of points it is good practice to call Reserve() ahead of time.
◆ Save()
| bool cudaPointCloud::Save |
( |
const char * |
filename | ) |
|
Save point cloud to PCD file.
◆ SetCalibration() [1/3]
| bool cudaPointCloud::SetCalibration |
( |
const char * |
filename | ) |
|
Set the intrinsic camera calibration.
◆ SetCalibration() [2/3]
| void cudaPointCloud::SetCalibration |
( |
const float |
K[3][3] | ) |
|
Set the intrinsic camera calibration.
◆ SetCalibration() [3/3]
| void cudaPointCloud::SetCalibration |
( |
const float2 & |
focalLength, |
|
|
const float2 & |
principalPoint |
|
) |
| |
Set the intrinsic camera calibration.
◆ mBufferGL
◆ mCameraGL
◆ mDepthResize
| float* cudaPointCloud::mDepthResize |
|
protected |
◆ mDepthSize
| size_t cudaPointCloud::mDepthSize |
|
protected |
◆ mFocalLength
| float2 cudaPointCloud::mFocalLength |
|
protected |
◆ mHasCalibration
| bool cudaPointCloud::mHasCalibration |
|
protected |
◆ mHasNewPoints
| bool cudaPointCloud::mHasNewPoints |
|
protected |
◆ mHasRGB
| bool cudaPointCloud::mHasRGB |
|
protected |
◆ mMaxPoints
| uint32_t cudaPointCloud::mMaxPoints |
|
protected |
◆ mNumPoints
| uint32_t cudaPointCloud::mNumPoints |
|
protected |
◆ mPointsCPU
| Vertex* cudaPointCloud::mPointsCPU |
|
protected |
◆ mPointsGPU
| Vertex* cudaPointCloud::mPointsGPU |
|
protected |
◆ mPrincipalPoint
| float2 cudaPointCloud::mPrincipalPoint |
|
protected |
The documentation for this class was generated from the following file:


Toggle Sidebar
Find
Tools
More Information
Less Information
Close
Enter the password to open this PDF file:
Cancel
OK
Preparing document for printing…
0%
Cancel


Get ongoing guidance when implementing your project with Spine
We become closer for some extra money
Help with the use of the framework
Priority issue resolution
Priority enhancements of the framework and libraries
Responses within one business day
Responses within 4 business hours
Provided by email
Phone, chat, and remote desktop on request
Let us help you start your project with our framework
Guidance on applying DDD, CQRS, and Event Sourcing with Spine Event Engine
Domain discovery with #EventStorming session
Development roadmap and a plan for your solution
Suggestions on further implementation
Preliminary remote research
A 3-5 days joint session with your team on-site or online
Further project guidance and support on request
{% include redirect-screen.html %}


{% extends 'base.html' %} {% block content %}
These are all your entries, {{punter.name}}
| Lottery Type | Draw Date | Winning numbers | Your entry id | Your entry | Your Prize | {% for entry in object_list %}
|---|---|---|---|---|---|
| {{entry.draw.lotterytype}} | {{entry.draw.drawdate}} | {{entry.draw.winning_combo}} | {{entry.pk}} | {{entry.entry}} | {{entry.win.prize}} {% endfor %} |


Welcome to Blue Ball Game
Hope you'll enjoy the Game
Rules
- Please read the rules of game carefully...
- Press 'OK' to start the Game
- You have only 3 attempts to guess the Blue Ball
- If you guessed ball and the location of blueball is behind of that ball then that ball will become Green color ball
- If you guessed ball and the location of blueball is ahead of that ball then that ball will become Red color ball
- If you guessed the right ball then you'll win the game
Attempts:
Time taken:


Store Manager
Home
Sales
5
5
Total:
Kshs. 526,000
Dell Monitor
Kshs. 65,500
Quantity: 04
Apple Watch
Kshs. 32,500
Quantity: 02
Boom Headphones
Kshs. 5,500
Quantity: 01
HDR Camera
Kshs. 80,500
Quantity: 02
Xbox One
Kshs. 32,500
Quantity: 01
Checkout


Three dead in Thai court shooting as ex-policeman fires on accusers
BANGKOK (Reuters) - An ex-policeman killed two people in a Thai court before being shot dead by police after he opened fire on two plaintiffs, and their lawyers, who had accused him of laying false charges and giving false testimony, police said on Tuesday.
The shootings occurred at a court in Chanthaburi province, east of Bangkok. The victims included one of the plaintiffs and one lawyer, a spokesman for the Court of Justice said in a statement.
The former police officer, identified as Tharin Chantharathip, and his accusers had been locked in several disputes for years, including a civil suit related to land and other criminal cases, said Suriya Hongwilai, the spokesman.
“When the judge left the courtroom, the defendant did the unexpected,” Suriya said.
In October, a judge in a southern Thailand shot himself in court after delivering a not guilty verdict in the case of five Muslim suspects charged with murder.