Sponsored Content
The Lounge What is on Your Mind? Calculating Warp Coordinates in Cyberspace - Cyberspace Situational Awareness Post 302989112 by Neo on Sunday 8th of January 2017 08:53:48 AM
Old 01-08-2017
Hi.

Can someone do me a favor and git this repo and see if you can get this to compile?

GitHub - godlikemouse/ForceDirectedLayout: A simple C++ based force directed layout system for performing command line layouts of nodes and edges in both 2D and 3D. Supports JSON and GraphML supported input and output. Supports additional attributes and parameters in both JSON and GraphML.

I have tried three versions of Ubuntu and I get errors every time I follow the instructions and try to build this.

The author claims it compiles on Arch Linux Smilie

I can get it to compile on OSX, but I don't want to set up a cross compiler for Linux:

Code:
Linux hawk600 3.2.0-115-generic #157-Ubuntu SMP Tue Oct 25 16:32:19 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

If someone can get it to compile on Linux x86_64 that would be very helpful for me and my cyberspace research project (will save me a lot of time).

Thanks again.

Thanks!
 

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Cyberspace Situation Graphs - Cyberspace Situational Awareness

Hi. I've been very busy this month working on resurrecting my old projects related to "cyberspace situational awareness" (CSA) which began last month by surveying the downstream literature that referenced my papers in this area using Google Scholar and also ResearchGate and posting updates on my... (5 Replies)
Discussion started by: Neo
5 Replies

2. What is on Your Mind?

Cyberspace Situational Awareness - End of Year Research Update

Here is an end-of-year update of my CSA research for 2016. A BIG THANK YOU to everyone at unix.com who keeps the forums running so well as I write code for cyberspace situational awareness experiments and do my research. I am still hopelessly trying to save the world from the unintended... (6 Replies)
Discussion started by: Neo
6 Replies

3. What is on Your Mind?

A Journey Into Cyberspace

A Journey Into Cyberspace A brief visual presentation on the results of research and development into new visualization tools and methods for cyberspace situational awareness via graph processing and multisensor data fusion. https://www.unix.com/members/1-albums112-picture678.png ... (1 Reply)
Discussion started by: Neo
1 Replies

4. What is on Your Mind?

Application for Virtualizing CyberSpace like Outer Space for Cyberspace Situational Awareness

Richard Zuech annotates his first experience flying in virtualized cyberspace hunting the bad guys! ... and he finds some! Application for Virtualizing CyberSpace like Outer Space for Cyberspace Situational Awareness (0 Replies)
Discussion started by: Neo
0 Replies

5. What is on Your Mind?

Virtualized Cyberspace, Cyberspace Consciousness and Simulation Theory - What Do You Think?

What do you think? Read this: Virtualized Cyberspace, Cyberspace Consciousness and Simulation Theory and comment below.... Are we in a computer simulation? Yes or No? Thanks! (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Virtualized Cyberspace - Visualizing Patterns & Anomalies for Cognitive Cyber Situational Awareness

Our team just published this technical report on ResearchGate: Virtualized Cyberspace - Visualizing Patterns & Anomalies for Cognitive Cyber Situational Awareness ABSTRACT ACKNOWLEDGMENTS Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License This... (0 Replies)
Discussion started by: Neo
0 Replies

7. What is on Your Mind?

Back to Cyber Situational Awareness Software Development

After mulling over self-publishing a cyberspace situational awareness mini-series starting with a short book on human cyber consciousness, I think it is best I delay writing a book and focus on software development. The general idea of human cyber consciousness is indirectly discussed in this... (0 Replies)
Discussion started by: Neo
0 Replies
mlib_ImagePolynomialWarpTable_Fp(3MLIB) 		    mediaLib Library Functions			   mlib_ImagePolynomialWarpTable_Fp(3MLIB)

NAME
mlib_ImagePolynomialWarpTable_Fp - polynomial-based image warp with table-driven interpolation SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_ImagePolynomialWarpTable_Fp(mlib_image *dst, const mlib_image *src, const mlib_d64 *xCoeffs, const mlib_d64 *yCoeffs, mlib_s32 n, mlib_d64 preShiftX, mlib_d64 preShiftY, mlib_d64 postShiftX, mlib_d64 postShiftY, mlib_d64 preScaleX, mlib_d64 preScaleY, mlib_d64 postScaleX, mlib_d64 postScaleY, const void *interp_table, mlib_edge edge); DESCRIPTION
The mlib_ImagePolynomialWarpTable_Fp() function performs a polynomial-based image warp on a floating-point image with table-driven interpo- lation. The images must have the same type, and the same number of channels. The images can have 1, 2, 3, or 4 channels. The data type of the images can be MLIB_FLOAT or MLIB_DOUBLE. The source and destination images may have different sizes. The xCoeffs and yCoeffs parameters must contain the same number of coefficients of the form (n + 1)(n + 2)/2 for some n, where n is the degree power of the polynomial. The coefficients, in order, are associated with the terms: 1, x, y, x**2, x*y, y**2, ..., x**n, x**(n-1)*y, ..., x*y**(n-1), y**n and coefficients of value 0 cannot be omitted. The image pixels are assumed to be centered at .5 coordinate points. In other words, the upper-left corner pixel of an image is located at (0.5, 0.5). For each pixel in the destination image, its center point D is backward mapped to a point S in the source image. Then the source pixels with their centers surrounding point S are selected to do the interpolation specified by interp_table to generate the pixel value for point D. The mapping is defined by the two bivariate polynomial functions X(x, y) and Y(x, y) that map destination (x, y) coordinates to source X and Y positions respectively. The functions X(x, y) and Y(x, y) are: preX = (x + preShiftX)*preScaleX preY = (y + preShiftY)*preScaleY n i warpedX = SUM {SUM {xCoeffs_ij * preX**(i-j) * preY**j}} i=0 j=0 n i warpedY = SUM {SUM {yCoeffs_ij * preX**(i-j) * preY**j}} i=0 j=0 X(x, y) = warpedX*postScaleX - postShiftX Y(x, y) = warpedY*postScaleY - postShiftY The destination (x, y) coordinates are pre-shifted by (preShiftX, preShiftY) and pre-scaled by the factors preScaleX and preScaleY prior to the evaluation of the polynomial. The results of the polynomial evaluations are scaled by postScaleX and postScaleY, and then shifted by (-postShiftX, -postShiftY) to produce the source pixel coordinates. This process allows for better precision of the results and supports tiled images. PARAMETERS
The function takes the following arguments: dst Pointer to destination image. src Pointer to source image. xCoeffs Destination to source transform coefficients for the X coordinate. yCoeffs Destination to source transform coefficients for the Y coordinate. n Degree power of the polynomial. preShiftX Displacement to apply to destination X positions. preShiftY Displacement to apply to destination Y positions. postShiftX Displacement to apply to source X positions. postShiftY Displacement to apply to source Y positions. preScaleX Scale factor to apply to destination X positions. preScaleY Scale factor to apply to destination Y positions. postScaleX Scale factor to apply to source X positions. postScaleY Scale factor to apply to source Y positions. interp_table Pointer to an interpolation table. The table is created by the mlib_ImageInterpTableCreate() function. edge Type of edge condition. It can be one of the following: MLIB_EDGE_DST_NO_WRITE MLIB_EDGE_SRC_PADDED RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_ImageInterpTableCreate(3MLIB), mlib_ImageInterpTableDelete(3MLIB), mlib_ImagePolynomialWarpTable(3MLIB), mlib_ImagePolynomial- Warp(3MLIB), mlib_ImagePolynomialWarp_Fp(3MLIB), attributes(5) SunOS 5.10 10 Nov 2004 mlib_ImagePolynomialWarpTable_Fp(3MLIB)
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy