Beispiel #1
0
def output_frames_fluori2d_sample():
    # output fluorimetry 2D-image
    lset = LatticeSettings()
    lset.set_camera(zoom=1.0,
                    base_position=(-2.0, 0.4292, 0.4292),
                    focal_point=(0, 0.4292, 0.4292))
    lset.set_particle(sphere_resolution=16)
    lset.set_movie(frame_interval=0.033,
                   exposure_time=0.033,
                   frame_end_time=10.0)
    lset.set_fluori2d(cutoff_depth=5.0e-8,
                      cutoff_psf=1.0e-7,
                      pixel_len=66.7e-9,
                      gauss_param=(1.0, 5.0e-8, 5.0e-8))

    lvis = LatticeVisualizer(['./hdf5_lattice/test_model.h5'],
                             image_file_dir='my_image',
                             movie_filename='test_model.avi',
                             settings=lset)

    # create data only(and show preview interactive mode)
    #    lvis.output_frames_fluori2d(output_image=False, \
    #                data_filename=FLUORI2D_DATA)

    # create data and output fluori2d image
    #    lvis.output_frames_fluori2d(num_div=16)

    # create data and output fluori2d movie
    lvis.output_movie_fluori2d(num_div=16)
def output_movie_sample():
    # output movie by constant interval frame data.
    lset=LatticeSettings()
    lset.set_image(height=640, width=860)
    lset.set_camera(zoom=5.0,focal_point = (0.5, 0.1, 0.1),
                    base_position = (-2.0, 0.1, 0.1))
    lset.set_particle(sphere_resolution=16)
    lset.set_movie(frame_interval=0.1, exposure_time=0.3,
                   frame_end_time = 3.0)

    lset.set_species_legend(width=0.2)
    lset.set_time_legend(width=0.1)
    lvis=LatticeVisualizer([DATA_FILE],
        image_file_dir='my_image',
        movie_filename='lattice.mp4',settings=lset)

    # view mode: snapshot
    lvis.output_movie(0)
Beispiel #3
0
def output_movie_sample():
    # output movie by constant interval frame data.
    lset = LatticeSettings()
    lset.set_image(height=640, width=860)
    lset.set_camera(zoom=5.0,
                    focal_point=(0.5, 0.1, 0.1),
                    base_position=(-2.0, 0.1, 0.1))
    lset.set_particle(sphere_resolution=16)
    lset.set_movie(frame_interval=0.1, exposure_time=0.3, frame_end_time=3.0)

    lset.set_species_legend(width=0.2)
    lset.set_time_legend(width=0.1)
    lvis = LatticeVisualizer([DATA_FILE],
                             image_file_dir='my_image',
                             movie_filename='lattice.mp4',
                             settings=lset)

    # view mode: snapshot
    lvis.output_movie(0)
def output_frames_fluori2d_sample():
    # output fluorimetry 2D-image
    lset=LatticeSettings()
    lset.set_camera(zoom=1.0,base_position=(-2.0, 0.4292, 0.4292), focal_point=(0, 0.4292, 0.4292))
    lset.set_particle(sphere_resolution=16)
    lset.set_movie(frame_interval=0.033, exposure_time=0.033, frame_end_time=10.0)
    lset.set_fluori2d(cutoff_depth=5.0e-8, cutoff_psf=1.0e-7, pixel_len=66.7e-9, gauss_param=(1.0, 5.0e-8, 5.0e-8))

    lvis=LatticeVisualizer(['./hdf5_lattice/test_model.h5'],
        			image_file_dir='my_image',
        			movie_filename='test_model.avi',
				settings=lset)

    # create data only(and show preview interactive mode)
#    lvis.output_frames_fluori2d(output_image=False, \
#                data_filename=FLUORI2D_DATA)

    # create data and output fluori2d image
#    lvis.output_frames_fluori2d(num_div=16)

    # create data and output fluori2d movie
    lvis.output_movie_fluori2d(num_div=16)