当前位置: 首页>>代码示例>>Python>>正文


Python WindowManager.getAllNonImageWindows方法代码示例

本文整理汇总了Python中ij.WindowManager.getAllNonImageWindows方法的典型用法代码示例。如果您正苦于以下问题:Python WindowManager.getAllNonImageWindows方法的具体用法?Python WindowManager.getAllNonImageWindows怎么用?Python WindowManager.getAllNonImageWindows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ij.WindowManager的用法示例。


在下文中一共展示了WindowManager.getAllNonImageWindows方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: range

# 需要导入模块: from ij import WindowManager [as 别名]
# 或者: from ij.WindowManager import getAllNonImageWindows [as 别名]
		testTile = WindowManager.getImage(windowName)
		numTotalChannels = testTile.getNChannels()
		labels = ["" for x in range(numTotalChannels)]
		defaultValues = [False for x in range(numTotalChannels)]
		for i in range(1,numTotalChannels+1):
			labels[i-1] = "Channel" + str(i)
			defaultValues[i-1] = False
	
		## Allows user to choose which channels to analyze
		gd = NonBlockingGenericDialog("Select channel...")
		gd.addCheckboxGroup(numTotalChannels,1,labels,defaultValues)
		gd.showDialog()
		runOnChannel = [False for x in range(numTotalChannels)]
		for i in range(numTotalChannels):
			runOnChannel[i] = gd.getNextBoolean()

		## Runs the 3D object counter on all the tiles and saves the results to disk
		IJ.run("3D OC Options", "volume surface nb_of_obj._voxels nb_of_surf._voxels integrated_density mean_gray_value std_dev_gray_value median_gray_value minimum_gray_value maximum_gray_value centroid mean_distance_to_surface std_dev_distance_to_surface median_distance_to_surface centre_of_mass bounding_box dots_size=5 font_size=10 show_numbers white_numbers store_results_within_a_table_named_after_the_image_(macro_friendly) redirect_to=none");
		channelImage = ChannelSplitter.split(testTile)
		testTile.close()
		for i in range(numTotalChannels):
			if (runOnChannel[i]):
				channelImage[i].show()
				IJ.run(channelImage[i], "3D Objects Counter", "threshold=42 slice=47 min.=300 max.=24903680 statistics")
				IJ.saveAs("Results", "/Volumes/DUNCAN/2015/03_12_15 ERT2 Confetti DSS earlier trace/A5/9396-abluminal.lsm_tiles/objects/C" + str(i+1) + "-tile_45.csv")
				channelImage[i].close()

		resultsWindows = WindowManager.getAllNonImageWindows()
		for i in range(len(resultsWindows)):
			resultsWindows[i].dispose()
开发者ID:stalepig,项目名称:deep-mucosal-imaging,代码行数:32,代码来源:Object_counter_full_res.py


注:本文中的ij.WindowManager.getAllNonImageWindows方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。