Questions tagged [4d]

4D involves calculations in four dimensions and typically relates to graphics programming. Use the [4d-database] tag for questions about the 4th Dimension database.

From Wikipedia, as of 5 March 2017‎:

In mathematics, four-dimensional ("4D") is a geometric space with four dimensions. It is typically meant to mean four-dimensional Euclidean space, generalizing the rules of three-dimensional Euclidean space. It has been studied by mathematicians and philosophers or over two centuries, both for its own interest and for the insights it offered mathematicians and related fields.

146 questions
0
votes
1 answer

3D or 4D interpolate to find the corrsponding values based on 4 column of variables

I'm trying to find out whether if its possible to find/interpolate to calculate the corresponding values from this set of variables +-------------+-------------+------+------+ | x | y | z | g …
0
votes
1 answer

SWIG c to python lost function?

considering: https://github.com/dmichel76/ViSi-Genie-RaspPi-Library I've tried a serial read and a write, from raspbian to 4d panel, and it all worked fine. I 'm trying to use a slider controller, this way it work for one minute then goes down…
user2239318
  • 2,578
  • 7
  • 28
  • 50
0
votes
2 answers

Using uTOLED-20 with RaspBerryPI

Recently I bought an uTOLED-G20 with the 4D Serial Adaptor. My current hardware connection is the following one (enclosed picture) My goal is to show the camera in the uTOLED screen. But before to achieve this I would like to send "some picture…
Mike Norton
  • 71
  • 1
  • 9
0
votes
1 answer

Plot 4D data where data come from 2 different files (Defining an odd palette)

I have two whitespace separated files that each partially contain the 4D data I need to plot. Call the data points (x,y,z,w). x, y are in both files, but the z and w are split up. I'm not sure how to pull the data properly, and define the proper…
Mr.Weathers
  • 398
  • 1
  • 5
  • 19
0
votes
1 answer

how to load multiple 3d dicom files and view them over time(4d) in matlab

I have 30 folders of 3D MRI dicom images( taken at different time intervals t1, t2, etc). Each folder consists of 2D dicom images(around 30 images). I need to view these as a 4D movie (3D over time). I am very new in handling dicom images in matlab.…
-1
votes
2 answers

Delete all zeros slices from 4d numpy array

I pretend to remove slices from the third dimension of a 4d numpy array if it's contains only zeros. I have a 4d numpy array of dimensions [256,256,336,6] and I need to delete the slices in the third dimension that only contains zeros. So the result…
-1
votes
1 answer

How can I multiply matrices of matrices elementwise using numpy (and not for loops)?

I have some 4-dimensional numpy arrays for which the easiest visualisation is a matrix of arbitrary size (not necessarily square) in which each element is a 2x2 square matrix. I would like to standard matrix multiply (@) the 2x2 matrices of the…
-1
votes
1 answer

create 4 dimension array in Python in optimization model

I'm struggling to work with 4 dimension array in python (to optimize then in Gurobi) My objective function is: model.setObjective((quicksum(r[i,j,k,l]*x[i,j,k,l] for i,j,k,l in XXX Subject to a number of constraints: With the following variable: #…
German
  • 1
-1
votes
2 answers

Make a 3D scatter plot animation with (X,Y,Z) points and time

I'm trying to help my girlfriend make an animation for an experiment where basically this group of cells moves across a petri dish and there's a camera tracking their individual positions over time. The data collected is in the form of time…
Mike Hawk
  • 77
  • 1
  • 1
  • 9
-1
votes
1 answer

How to do 4D plot in matplotlib without np.meshgrid?

I know that I can do a 4D plot in matplotlib with the following code, with the fourth dimension shown as a colormap: import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm fig =…
-2
votes
1 answer

mat2cell to divide 3D image into blocks

I have a 4D image of size 60 x 80 x 12 x 350, i.e. it is a 3D image where each voxel has a time series (of 350). Now I want to use mat2cell to divide the 3D image into cubes of dimension k*k*k. Each voxel in the cube is a vector of size 350 (the…
machinery
  • 5,972
  • 12
  • 67
  • 118
1 2 3
9
10