Skip to content

Commit

Permalink
why not
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Jun 20, 2016
1 parent 71e4ec8 commit 3accfdc
Show file tree
Hide file tree
Showing 51 changed files with 2,928 additions and 31 deletions.
25 changes: 25 additions & 0 deletions base_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{

//---------------------------------------------------------------------------
// Threading / Parallelism (needs restart)
//---------------------------------------------------------------------------
"nThreadRenderThreadPool" : -1,

//---------------------------------------------------------------------------
// Pyqtgraph settings (needs restart)
//---------------------------------------------------------------------------
"useOpenGl" : true,
"antiAliasing" : false,

//---------------------------------------------------------------------------
// tiling (needs restart)
//---------------------------------------------------------------------------
"useDynamicTiling" : true,
"tileSize" : 256,
"tileShape" :[10, 10]


//---------------------------------------------------------------------------
//
//---------------------------------------------------------------------------
}
2 changes: 1 addition & 1 deletion layer_stress_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
mw.setCentralWidget(viewerWidget)


for x in range(20):
for x in range(5):
with vigra.Timer("create raw layer"):
f = "/home/tbeier/Desktop/input/raw.h5"
#f = "/media/tbeier/data/datasets/hhess/2x2x2nm_chunked/data.h5"
Expand Down
34 changes: 34 additions & 0 deletions new_start.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import numpy
import orthos


"here where try a 4d"
shape = (150,)*4

class Axis(object):
def __init__(self, name, shortName, shape, color=None, isChannelAxis=False, channelNames=None):
pass

class DataSourceAxis(object):
def __init__(self, dataAxis):
self.dataAxis =


xAxis = Axis(name='X0-Axis',shortName='x0', shape=shape[0], color=orthos.colors.defaultAxisColor(0))
yAxis = Axis(name='X1-Axis',shortName='x1', shape=shape[1], color=orthos.colors.defaultAxisColor(1))
zAxis = Axis(name='X2-Axis',shortName='x2', shape=shape[2], color=orthos.colors.defaultAxisColor(2))
tAxis = Axis(name='X3-Axis',shortName='x3', shape=shape[3], color=orthos.colors.defaultAxisColor(3))

# channel axis do not need a color
rgbAxis = Axis(name='RGB',shortName='RGB',shape=shape[3])

globalAxis = [xAxis, yAxis, zAxis, tAxis]


# negative number indicate channel axis
rawSource = DataSourceAxis(dataAxis=[0,1,2,3,4])
rgbSource = DataSourceAxis(dataAxis=dataAxis, axisOrdering=[0,1,2,3,4],channels=None)

# negative number indicate channel axis
rgbChannel = Channel(name='RGB',channelNames=['r','g','b'], shape=3)
rgbSource = DataSourceAxis(dataAxis=dataAxis, axisOrdering=[0,1,2,3,4,-1],channels=[rgbChannel])
1 change: 1 addition & 0 deletions orthos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import orthos_cpp
import colors
import widgets
from orthos_cpp import *

from icons_rc import *
26 changes: 26 additions & 0 deletions orthos/colors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

#http://stackoverflow.com/questions/309149/generate-distinctly-different-rgb-colors-in-graphs
# http://phrogz.net/css/distinct-colors.html

import numpy

distinctiveColors13 = numpy.array([
(255,0,0),
(0,255,0),
(0,0,255),
(242,79,19),
(255,174,13),
(140,255,8),
(9,64,24),
(160,242,193),
(17,197,242),
(24,24,242),
(63,8,77),
(242,155,213)
], dtype='uint8')



def defaultAxisColor(i):
global distinctiveColors13
return distinctiveColors13[i]
Loading

0 comments on commit 3accfdc

Please sign in to comment.