Skip to content

SortImages

Adrian Quintana edited this page Dec 11, 2017 · 1 revision

classify_CL2D_sort_images

Purpose

This program sorts images in a selfile by appearance. The first image in the input selfile will be the first image in the output selfile. Then, among all images remaining in the input selfile, the program chooses that one most similar to the last image introduced in the output selfile. This process is repeated until no other image is left in the input selfile.

When applied to a selfile produced by ClassAverages, you can use the option -processSelfiles. This will produce further information about the final result

Usage


$ classify_CL2D_sort_images ...


Parameters

  • `` Set of images to sort
  • `` Name of the output files
  • `` Process the selfiles corresponding to the images in the selfile. For this option, the input selfile must be the output ofClassAverages

The output files are[rootname][ordernumber].xmp (e.g., if rootname isclass, thenclass00001.xmp,class00002.xmp, ...). These are the sorted and aligned images.[rootname]_sorted_aligned.sel is the corresponding selfile.[rootname]_sorted.sel is a selfile with the input images sorted according to the chosen order. If the -processSelfile option is used, then a file called[rootname]_sorted_info.txt contains: the sorted and aligned output image ([rootname][ordernumber].xmp), the corresponding input image in the input selfile, the corresponding selfile (it is assumed that the input image is a class representative, and this is the selfile corresponding to that class), and the number of images assigned to that class file.

Examples and Notes

Compute 128 classes using 8 processors and sort the output


$ mkdir Classes
$ mpirun -np 8 `which xmipp_mpi_classify_CL2D` -i g0ta.sel -codes 128 -o Classes/class -fast
$ xmipp_classify_CL2D_sort_images -i Classes/class.sel -oroot Classes/class_sorted -processSelfiles


The result is stored inClasses/class.sel, there are many intermediate selfiles with the different groups at different levels. For each codevector, there is a list of the images assigned to that class.

USER's COMMENTS

--Main.CoSS - 23 Mar 2010

Clone this wiki locally