コード例 #1
0
    #////////////////////////////
    # Get the planes.
    #////////////////////////////
    planes = ui.getmimsTomography().getPlanes()

    #////////////////////////////
    # Get the rois.
    #////////////////////////////
    rois = ui.getRoiManager().getAllROIs()

    #////////////////////////////
    # Get images.
    #////////////////////////////
    imageArray = ArrayList()

    massimages = ui.getOpenMassImages()
    for j in range(len(massimages)):
        imageArray.add(massimages[j])

    # Ratio images
    # 0 corresponds to the first mass image (e.g. mass 12.0)
    # 1 corresponds to the second mass image (e.g. mass 13.0)
    ratioProps1 = RatioProps(1, 0)
    mp1 = MimsPlus(ui, ratioProps1)
    imageArray.add(mp1)
    IJ.log("Opening ratio: " + mp1.getTitle())

    # Ratio images
    # 2 corresponds to the first mass image (e.g. mass 26.0)
    # 3 corresponds to the second mass image (e.g. mass 27.0)
    ratioProps2 = RatioProps(3, 2)
コード例 #2
0
	#////////////////////////////
	# Get the planes.
	#////////////////////////////
	planes = ui.getmimsTomography().getPlanes()

	#////////////////////////////
	# Get the rois.
	#////////////////////////////
	rois = ui.getRoiManager().getAllROIs()

	#////////////////////////////
	# Get images.
	#////////////////////////////
	imageArray = ArrayList()
	
	massimages = ui.getOpenMassImages()
	for j in range(len(massimages)):
		imageArray.add(massimages[j])
	
	
	# Ratio images
	# 0 corresponds to the first mass image (e.g. mass 12.0)
	# 1 corresponds to the second mass image (e.g. mass 13.0)
	ratioProps1 = RatioProps(1, 0)
	mp1 = MimsPlus(ui, ratioProps1)
	imageArray.add(mp1)
	IJ.log("Opening ratio: "+mp1.getTitle())

	# Ratio images
	# 2 corresponds to the first mass image (e.g. mass 26.0)
	# 3 corresponds to the second mass image (e.g. mass 27.0)