tomo3D.viewers.viewer_mrc module

class tomo3D.viewers.viewer_mrc.LoadingScreen[source]

Bases: PyQt5.QtWidgets.QWidget

startAnimation()[source]
stopAnimation()[source]
class tomo3D.viewers.viewer_mrc.MrcPlot(tomo_mrc=None, mask_mrc=None, points=None, boxSize=None, normals=None, binning=None, sigma=1.0, triangulation=False)[source]

Bases: object

Class to visualize MRC files Input paramters:

  • tomo_mrc (Path (Str) - Optional): File containing a Volume (in MRC format)
  • mask_mrc (Path (Str) - Optional): File containing a Mask (in MRC format)
  • points (Path (Str) - Optional): File containing a SetOfCoordinates3D (in TEXT format)
  • boxSize (Double - Optional): Box size associated to points
  • normals (Path (Str) - Optional): File containing a Set of Normals (in TEXT format)
  • binning (Float - Optional): Binning factor to be applied to tomo_mrc and mask_mrc (Very useful to save time)
  • sigma (Float - Optional): Gaussian Filter width
  • triangulation (Bool - Optional): Tells if the representation of the Tomogram is Voxel based on Triangle based
Usage:
import MRCPlot plt = MRCPlot(tomo_mrc=tomo_mrc, mask_mrc=mask_mrc, binning=2) plt.initializePlot()
contours(hist, bin_centers)[source]
downsamplingPC(coords, voxel_size)[source]
getBinning(file)[source]
gridFromMRC(data)[source]

Function to convert an MRC file into an Structure Grid in VTK

histogram(volume)[source]
initializePlot()[source]
isovolumes(volume, range=0.01, sigma=None, triangulation=True)[source]
loadInMemory(source, sliceMode=False)[source]
marchingCubes(volume, level=None, triangulation=True)[source]
plotBoxes(value)[source]
plotMasks(value)[source]
plotNormals(value)[source]
plotPoints(value)[source]
plotTomo(value)[source]
readMRC(file, binning=1, order=0, swapaxes=True)[source]
showMask(load=True)[source]
showSlices(load=True)[source]
showTomogram(load=True)[source]
surfaceFromMRC(data, label=1)[source]

Function to convert an MRC file into an Structure Surface in VTK

toogleSlice(value)[source]
class tomo3D.viewers.viewer_mrc.Worker(viewer)[source]

Bases: PyQt5.QtCore.QObject

finished
runMaskLoading()[source]
runTomoLoading()[source]