.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/flim/plot_intensity_image.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_flim_plot_intensity_image.py: =============== Intensity image =============== .. GENERATED FROM PYTHON SOURCE LINES 9-17 .. code-block:: Python import pylab as plt import tttrlib ht3_filename_img = '../../tttr-data/imaging/pq/ht3/crn_clv_img.ht3' data = tttrlib.TTTR(ht3_filename_img, 'HT3') clsm = tttrlib.CLSMImage(tttr_data=data, fill=True, channels=[0]) .. GENERATED FROM PYTHON SOURCE LINES 18-19 CLSM images usually consist of a set of frames. .. GENERATED FROM PYTHON SOURCE LINES 19-24 .. code-block:: Python intensity = clsm.intensity print(intensity.shape) plt.imshow(clsm.intensity.sum(axis=0)) plt.show() .. image-sg:: /auto_examples/flim/images/sphx_glr_plot_intensity_image_001.png :alt: plot intensity image :srcset: /auto_examples/flim/images/sphx_glr_plot_intensity_image_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (40, 256, 256) .. GENERATED FROM PYTHON SOURCE LINES 25-29 Filled CLSMImages can be stacked. Stacking assigns the photons of pixels in frames to the first frame. Note, stacking simply combines the tttr indices in a pixels. After stacking the CLSMImage should not be "refilled" as this can result in undefined behavior. .. GENERATED FROM PYTHON SOURCE LINES 29-31 .. code-block:: Python clsm.stack_frames() clsm_stacked_int = clsm.intensity .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 5.319 seconds) .. _sphx_glr_download_auto_examples_flim_plot_intensity_image.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_intensity_image.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_intensity_image.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_