Hi Kurt,
(1)
This section is the one that I was referring to. Note: It's the one
that's *not* in a "if 0" statement, so it's being used. Others are
effectively commented out.
> #print inputVolume.shape
>
> for xOffset in range(-(windowSize+1), windowSize, step):
> for yOffset in range(-(windowSize+1), windowSize, step):
> f['focus_%s_%d_%d' % (key, xOffset, yOffset)] =\
> inputVolume[point[0] + xOffset, point[1] +
> yOffset, point[2]]
(2)
The cleanest way is to change windowSize is to change the "6" to
whatever you want:
if key == 'originalVolume':
windowSize = 6 * scale
A smaller number will make the patch smaller.
-rick
> def getPointFeaturesAt(__inputVolumeDict, volume,
> derivativeVolumesIdentifier, gui, point)
>
>
> As a software engineer, I have to apologize for this code. It's a
> pretty experimental program and not cleaned up how I'd like it. In
> any case, you'd need to "uncomment" these to turn on the eigen
> values of the structure tensor.
>
>
> xGVolume = gui.getVolume('%s_0Gradient___blur%d' %\
> (derivativeVolumesIdentifier, i))
> xG = at(xGVolume, point)
> yGVolume = gui.getVolume('%s_1Gradient___blur%d' %\
> (derivativeVolumesIdentifier, i))
> yG = at(yGVolume, point)
> zGVolume = gui.getVolume('%s_2Gradient___blur%d' %\
> (derivativeVolumesIdentifier, i))
> zG = at(zGVolume, point)
>
>
>
> stAtSelectedPoint = structureTensor(xG,yG,zG)
>
>
> sortedEigAtSelectedPoint =
> numpy.linalg.eigvals(__stAtSelectedPoint)
>
> sortedEigAtSelectedPoint.sort(__)
> send an email to cytoseg+unsubscribe@__
googlegroups.com
> <mailto:
cytoseg%2Bunsu...@googlegroups.com>.
> <mailto:
cyt...@googlegroups.com>.
> Visit this group at
http://groups.google.com/__group/cytoseg?hl=en
> <
http://groups.google.com/group/cytoseg?hl=en>.
> For more options, visit
https://groups.google.com/__groups/opt_out
> <
https://groups.google.com/groups/opt_out>.
>
>
>
>
>
> --
> .
>
> --
> You received this message because you are subscribed to the Google
> Groups "Cytoseg" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
cytoseg+u...@googlegroups.com.