| 764 | // ---------------------------------------------------------------------------------------- |
| 765 | |
| 766 | void metadata_editor:: |
| 767 | display_about( |
| 768 | ) |
| 769 | { |
| 770 | std::ostringstream sout; |
| 771 | sout << wrap_string("Image Labeler v" + string(VERSION) + "." ,0,0) << endl << endl; |
| 772 | sout << wrap_string("This program is a tool for labeling images with rectangles. " ,0,0) << endl << endl; |
| 773 | |
| 774 | sout << wrap_string("You can add a new rectangle by holding the shift key, left clicking " |
| 775 | "the mouse, and dragging it. New rectangles are given the label from the \"Next Label\" " |
| 776 | "field at the top of the application. You can quickly edit the contents of the Next Label field " |
| 777 | "by hitting the tab key. Double clicking " |
| 778 | "a rectangle selects it and the delete key removes it. You can also mark " |
| 779 | "a rectangle as ignored by hitting the i or END keys when it is selected. Ignored " |
| 780 | "rectangles are visually displayed with an X through them. You can remove an image " |
| 781 | "entirely by selecting it in the list on the left and pressing alt+d." |
| 782 | ,0,0) << endl << endl; |
| 783 | |
| 784 | sout << wrap_string("It is also possible to label object parts by selecting a rectangle and " |
| 785 | "then right clicking. A popup menu will appear and you can select a part label. " |
| 786 | "Note that you must define the allowable part labels by giving --parts on the " |
| 787 | "command line. An example would be '--parts \"leye reye nose mouth\"'. " |
| 788 | "Alternatively, if you don't give --parts you can simply select a rectangle and shift+left " |
| 789 | "click to add parts. Parts added this way will be labeled with integer labels starting from 0. " |
| 790 | "You can only use this simpler part adding mode if all the parts in a rectangle are already " |
| 791 | "labeled with integer labels or the rectangle has no parts at all." |
| 792 | ,0,0) << endl << endl; |
| 793 | |
| 794 | sout << wrap_string("Press the down or s key to select the next image in the list and the up or w " |
| 795 | "key to select the previous one.",0,0) << endl << endl; |
| 796 | |
| 797 | sout << wrap_string("Additionally, you can hold ctrl and then scroll the mouse wheel to zoom. A normal left click " |
| 798 | "and drag allows you to navigate around the image. Holding ctrl and " |
| 799 | "left clicking a rectangle will give it the label from the Next Label field. " |
| 800 | "Holding shift + right click and then dragging allows you to move things around. " |
| 801 | "Pressing ctrl+z will undo changes to the current image's boxes and pressing " |
| 802 | "ctrl+y or ctrl+shift+z will redo them. " |
| 803 | "Holding ctrl and pressing the up or down keyboard keys will propagate " |
| 804 | "rectangle labels from one image to the next and also skip empty images. " |
| 805 | "Similarly, holding ctrl+shift will propagate entire boxes via a visual tracking " |
| 806 | "algorithm from one image to the next. " |
| 807 | "Finally, typing a number on the keyboard will jump you to a specific image.",0,0) << endl << endl; |
| 808 | |
| 809 | sout << wrap_string("You can also toggle image histogram equalization by pressing the e key." |
| 810 | ,0,0) << endl; |
| 811 | |
| 812 | |
| 813 | message_box("About Image Labeler",sout.str()); |
| 814 | } |
| 815 | |
| 816 | // ---------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected