[-p "rows columns [frames]"] [-s "rows columns [frames]"][-slid] [-x[x, X] #] [-c #] [-r #] [+#] [-o filename] [ < ]
This tool can do all of following jobs alone or in combination.
<1> Convert images of any supported types above to HIPS images. <2> Combine multiple frame images to a single 2 dimensional image. <3> Combine multiple frame images into different multiple frame images with different or same frame, and with same or different frame size. <4> Enlarge frame(s) in x or y or both direction with same or different factor. <5> Input can be either a HIPS image (with header) or raw image data. <6> Output can be either a HIPS image (with header) or raw image data. <7> Perform image translation. <8> Extract a 2D or 3D subimage. <9> print out histogram table or ploting data for analysis.
powertool will strip image.x of its header store the raw image data in image.y.
powertool reads image.y as raw image data and treats it as 24 56x56 frames of 3D image data, and outputs 6 112x112 frames in file image.z.
In this example, powertool takes away some garbage (123 bytes long = 7B in HEX) from bad_header.image and generates a workable floating point format new image - good_header.image.
-p "32 16 12" -s "192 192 80" Image_256_256_124 > Image_192_192_80
In this example, powertool extracts a central 3D image (32--224, 16--208, 12--80) from a 256x256x124 3D image. Here, -p gives the starting position as row 32, column 16, and frame 12.
Here, powertool splits all even frames from image Image_256_256_124 and generates a new image: EvenImage. First, powertool spreads the image into 62 double size frames, each frame contains 2 old frames, then picks up row 256 column 1 (defaulted by missing argument) frame, which is even frame, and builds a new image (split even frames). If the -p 256 option not used, then powertool generates an image with all odd frames.
build a histogram list table (not a graph) of Saturn. A text file can be modified by text edtior and used for histo_simulate to generate a certain spectrum.
mhisto Saturn | powertool -a > Saturn.histo.gnu-data
generate histogram data for gnuplot.
# unix script file RLE=$1 RGB=$RLE.rgb red=$RLE-hr green=$RLE-hg blue=$RLE-hb irow=`rlehdr $RLE | sed -n -e "s/^.*size ([0-9][0-9]*), [0-9][0-9]*))/1 2/p" | awk '{print $2}'` icol=`rlehdr $RLE | sed -n -e "s/^.*size ([0-9][0-9]*), [0-9][0-9]*))/1 2/p" | awk '{print $1}'` rletoraw -N $RLE > $RGB powertool -H "$irow $icol" $RGB > $red powertool -H "$irow $icol 2" -p "1 1 2" $RGB > $green powertool -H "$irow $icol 3" -p "1 1 3" $RGB > $blue rm $RGB exitThis shell script file takes input from command line and output 3 single channel HIPS image files.