ratioProps2 = RatioProps(3, 2)
	mp2 = MimsPlus(ui, ratioProps2)
	imageArray.add(mp2)
	IJ.log("Opening ratio: "+mp2.getTitle())

	images = jarray.zeros(imageArray.size(), MimsPlus)
	images = imageArray.toArray(images)
	
	#////////////////////////////
	# Create and display table.
	#////////////////////////////
	table = MimsJTable(ui)
	table.setStats(stats)
	table.setRois(rois)
	table.setImages(images)
	table.setPlanes(planes)
	#append=false
	nPlanes = ui.getOpener().getNImages()
	if nPlanes > 1:
   		table.createTable(False)
	else:
   		table.createSumTable(False)
	#table.showFrame();
	IJ.log("Writing: "+imDirName+"/"+ui.getImageFilePrefix()+"_data.csv")
	table.writeData(File(imDirName, ui.getImageFilePrefix()+"_data.csv"))
	table.close()
	IJ.log("")

ui.closeCurrentImage()
ui.close()
Пример #2
0
    #////////////////////////////
    # Create and display table.
    #////////////////////////////
    table = MimsJTable(ui)
    table.setStats(stats)
    table.setRois(rois)
    table.setImages(images)
    table.setPlanes(planes)
    #append=false
    nPlanes = ui.getOpener().getNImages()
    if nPlanes > 1:
        table.createTable(False)
    else:
        table.createSumTable(False)
    #table.showFrame();

    csvFileName = os.path.join(imDirName,
                               ui.getImageFilePrefix() + "_data.csv")
    if os.path.exists(csvFileName):
        IJ.log("ERROR: file" + csvFileName + " exists. Skipping.")
    else:
        IJ.log("Writing: " + csvFileName)
        table.writeData(File(csvFileName))
        table.close()

    IJ.log("")

ui.closeCurrentImage()
ui.close()
IJ.log("OpenMIMSTables finished.\n\n")
Пример #3
0
  
  #////////////////////////////
  # Create and display table.
  #////////////////////////////
  table = MimsJTable(ui)
  table.setStats(stats)
  table.setRois(rois)
  table.setImages(images)
  table.setPlanes(planes)
  #append=false
  nPlanes = ui.getOpener().getNImages()
  if nPlanes > 1:
       table.createTable(False)
  else:
       table.createSumTable(False)
  #table.showFrame();
  
  csvFileName = os.path.join(imDirName, ui.getImageFilePrefix()+"_data.csv")
  if os.path.exists(csvFileName):
    IJ.log("ERROR: file" + csvFileName + " exists. Skipping.")
  else:
    IJ.log("Writing: " + csvFileName)
    table.writeData(File(csvFileName))
    table.close()
    
  IJ.log("")

ui.closeCurrentImage()
ui.close()
IJ.log("OpenMIMSTables finished.\n\n")