⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.1

📁 speech signal process tools
💻 1
📖 第 1 页 / 共 2 页
字号:
.\" Copyright (c) 1988, 1989 Entropic Speech, Inc.  All rights reserved..\" @(#)image.1	1.16	4/1/97	ESI.TH IMAGE 1\-ESPS 4/1/97.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH "NAME"image \- plot data from ESPS file as a color, gray-scale, or halftone image.SH "SYNOPSIS".B image[.BR \- { ef } " \fIrange\fP"] . . . [.BI \-l " range"] [.BR \-o] [.BR \- { prs } " \fIrange\fP"] [.BI \-t " text"].br[.BI \-x " debug_level"] [.BI \-A " algorithm"] [.BI \-B " scale"] [.BI \-C " colormap"] [.BI \-D] [.BI \-F " function"].br[.BI \-G " range"] [.BR \-L { prs }] [.BR \-M " magnification"] [.BI \-P " param"] [.BI \-S " width\fR[\fP" : "height\fR]\fP"] [.BI \-T " device"] [.BI \-V " text"] [.BI \-W " X_geometry"].I file.SH "DESCRIPTION".PP\fIImage\fP interprets data from a specific ESPS FEA field ascomprising the rows (or columns) of an image, and it displays theresulting image.  A typical use for \fIimage\fP to display data froman ESPS spectrum (FEA_SPEC) file as a spectrogram (see \fIplotsgram\fP(1\-\s-1ESPS\s+1), which is a script that calls \fIimage\fP).  .PPIn general, data values are obtained from the input records, scaled torepresent gray-scale values, and displayed as a two-dimensional imagewith one axis representing time or record number and one axisrepresenting frequency or relative position within a record.  Onsingle-plane systems, the gray scale is simulated by a half-tonetechnique: the density of dots near a point is proportional to thevalue being represented.  Alternatively, on some devices, a truegray-scale image may be obtained, consisting of dots of variousintermediate intensities, and a colormap may be specified for use oncolor systems.  A range of records within the file may be selectedwith the.BR \-p ,.BR \-r ,or.B \-soption,and a range of elements within the record may be selected with the.B \-foption.By default, the image is displayed on the user's graphics display;hard copy may also be obtained, or the image may be saved to a file..SH "OPTIONS".PPThe following options are supported.  Values in brackets are defaults. .TP.BI \-e " range"The option letters.B \-eand.B \-fare synonymous, and.I rangemay have any of the forms shown below with.B \-f.The preferred letter is now.B \-f(mnemonic for ``field name''), but.B \-e(mnemonic for ``element number'') is supported for backward compatibility..TP.BI \-f " grange".LP\fB\-f "\fIfield-name\fB\^[\^\fIgrange\fB\^]\^"\fR.TP.BI \-f " field-name" " \fR[re_spec_val]"This option specifies a set of elements within each record..IPThe argument may be a general range specification acceptable to.IR grange_switch (3\-ESPSu).This specifies a set of integers that indicate the positions of theelements within a record.The tag, if present is counted as element zero.The other elements are counted starting with one,whether tags are present or not.To find the element number of an element in an ESPS file, use.IR fea_element (1\-ESPS).The following are allowable forms for.I grange..RS.TP.I elementA single integer specifies a single record element..TP.IB first : lastA pair of elements specifies an inclusive range of elements..TP.IB first :+ incrThe form with the plus sign is equivalent to.IB first : lastwith.IR last " = " first " + " incr..TP.IB range , " . . . " , " range"A comma-separated list of range specifications of the first threeforms allows for noncontiguous sets of elements.The ranges should be given in increasing order and without overlaps..RE.IPIf the specified range contains points not in the file, therange is reduced as necessary..IPIf the input file is an ESPS feature (FEA) file, a field within arecord may be specified by name.In that case, the bracketed.I grangerefers to positions within the field, counting the first as positionzero.A field name without a bracketed.I grangerefers to the entire field.In that case the double quotes can be omitted as well,as their only purpose is to prevent the shellfrom giving the usual special interpretation to the brackets..IPThe command line may contain several.B \-foptions with field names.The.B \-foption without a field name may be used at most onceand may not be used in the same command with the form containing afield name..IPIf the input file is an ESPS spectrum (FEA_SPEC) fileand this option is not specified,the spectrum values are converted to logarithmically scaled power (in dB)and plotted against frequency instead of position withing the record..IPThe first form of this option (with no field name)was devised to permit specifying elements of ESPS files of arbitrary types,including non_FEA types.With the replacement of non-FEA file types by FEA subtypes,this form has become obsolescent;the forms involving a field name are preferred for use with FEA files.The first form is not supported with input filesthat contain fields with complex data types.The forms involving a field name are supported with real fieldseven though other fields in the file may be complex..TP.BI \-l " low" : "high" " \fR[(determined from data)]".TP.BI \-l " low" :+ "incr"The first form gives the data values corresponding to the limits ofthe grayscale.Values of.I lowor less correspond to a blank region of the image, and values of.I highor more correspond to a completely filled-in region.If .IR high " = " low " + " incr,the second form (with the plus sign) specifies the same range as thefirst..TP.BI \-oThe default orientation of the image has the origin in the lower left cornerwith the horizontal axis representing time or record numberand the vertical axis representing frequency or relative position withinthe record.If this option is specified, the origin is moved to the upper left corner,and the roles of the axes are reversed..TP.BR \- { prs "} \fIfirst\fP" : "\fIlast\fR [(first in file):(last in file)]".TP.BR \- { prs "} \fIfirst\fP" :+ "\fIincr\fP"In the first form, a pair of unsigned integers specifies the range ofrecords from which element values are to be plotted.If.B \-ris used, the limits refer to the record number,counting the first record in the file as number one.If.B \-pis used, the file must be tagged, and the limits refer to the values of thetags.If.B \-sis used, the limits are times in seconds.It must then be possible to associate times with records.There are two possibilities.The first is that the file is tagged,and the header contains the generic header item "src_sf",which gives the sampling frequency of the reference file.(In tagged FES_SPEC files without "src_sf",the header item "sf" is used instead.)Then the time associated with a record is.RI ( tag\- 1) divided by the sampling frequency.The second possibility isthat the file contains the generic header item "record_freq".In that case the time associated with record number.I ris given by.I start_time+.RI ( r "\-1)/" record_freq,where.I start_timeis given by the generic header item "start_time"or 0 if the item is not present..IPEither.I firstor.I lastmay be omitted; then the default value is used.If .IR last " = " first " + " incr,the second form (with the plus sign) specifies the same range as thefirst.  If the specified range contains records not in the file, therange is reduced as necessary..TP.BI \-t " text" "\fR [(none)]"Title to be printed at the bottom of the page..TP.BI \-x " debug level" "\fR [0]"Print diagnostic messages as program runs (for debugging purposesonly).Higher levels give more messages.The default level of zero suppresses all debugging messages..TP.BI \-A " algorithm" " \fR[(device-dependent)]\fP"Gray-scale algorithm.The following arguments give black-and-white dot halftone renderings:.IP.I "od1 od2 od3 od4 fs fs2".IPOn Masscomp, X Windows, and Sun multiplane color systems,the following argumentsgive multilevel gray-scale renderings by manipulating the color map:.IP.I "16lvl 16od1 16od1_2 16od1_3.".IPIn the first set,.I od1\-od4are just ordered-dither algorithms with various threshold matrices.Better results may usually be obtained with.I fs,which is a Floyd-Steinberg algorithm.Algorithm.I fs2first squares the scaled values between 0 and 1that represent the gray levels: then it applies.I fs.The squaring operation enhances the contrastin the darker areas of the image, and.I fs2is recommended for use with spectrograms..IPThe algorithms of the second group use 16 entries in the color mapto obtain 16 different gray levels.  The first one,.I 16lvl,is a simple-minded algorithmthat just rounds each gray level to the nearest of the 16 levels.It produces contouring and is not recommended.The other three use dithering between adjacent gray levelsto simulate a much greater number of gray levels than 16.Algorithm.I 16od1_2is a variant of.I 16od1just as.I fs2is a variant of.I fs\- it uses a squaring operation to enhance contrast in the darker areas.Algorithm.I 16od1_3is similar, but cubes instead of squaring.For spectrograms,.I 16od1_2or.I 16od1_3is recommended.On the multiplane color systems mentioned above, the default is.I 16od1_2for FEA_SPEC input files and.I 16od1for other file types.On other output devices, the default is.I fs2for FEA_SPEC input files and.I fsfor other file types..TP.BI \-B " scale" " \fR[0]\fP"Include a border containing titles and axis labels.Unless this option is invoked,only the unadorned gray-scale image is displayed,and the.B \-tand.B \-Voptions have no effect.The argument is a scale factor that controls the sizes and spacingof tick marks and characters in axis labels and titles.The default value of 0 causes a reasonable scale to be selected forthe particular output device..TP.BI \-C " file-name".LP.BI \-C " file-name" "\^[\^" grange "\^]\^".IPRead a file containing triples of intensities (red, green, blue)and load the color map used by.I image.This option is effective only on color systemsrunning X Windows or Sun's SunView window system,and only when the ``gray-scale'' algorithm (see.BR \-A )actually uses multiple color-map entries.The file should be an Ascii file containing linesthat begin with three integers (base 10) in the range 0\-255.The numbers should be delimited by whitespace;anything that follows on the same line is ignored.Colormap files used with.I waves+have this format and can be read by.I image.The filename may optionally be followed by a bracketed range specificationof the type accepted by.IR grange_switch (3-ESPSu).This specifies a sequence of line numbers in the file;for example.BR \-C " cmap" [ 25:85 ]selects the colormap entries from lines 25 through 85 of the file.I cmap.The line numbering begins with 0 for the first line.Omitting the bracketed range specificationselects all lines in the file.If this option is not specified, and if there is no.I colormapentry in the parameter file,the program uses a default scale of grays starting with{255, 255, 255} (white) and decreasing in equal steps to{0, 0, 0} (black).At present all the algorithms that set the color map at alluse a 16-entry color map.However, it is not necessary for the fileor the selected sequence of lines to contain exactly 16 entries;if there are too many or too few,a sequence of 16 triples is derived by linear interpolation..TP.B \-DDisable linear interpolation.Normally.I imageinterpolates between data points to make the intensity (or color)vary continuously from point to point in the image.When.B \-Dis specified, the data points each appear in a rectangle with a sharp boundaryand a uniform intensity or color representing the actual data value..TP.BI \-F " function" "\fR[(log for FEA_SPEC files, NONE for other types)]\fP"Apply a function to the data before the gray-scale algorithm is applied.The possible arguments are.IP.I "NONE log exp sq sqrt.".IPThe default is.I NONEfor FEA files..IPFor FEA_SPEC files,.I logconverts the spectral values to dB,whatever the actual FEA_SPEC-file subtype;this is the default for FEA_SPEC files..I NONEconverts to actual power, and.I sqrtgives the square root of the power.Though available,.I sqand.I expare unlikely to be useful with FEA_SPEC files..IPThe.B \-Foption interacts with the.B \-loption in that the limits given with.B \-lapply to the values that result from applying the function.Thus if, for instance,.B \-FNONEis used with a FEA_SPEC file, then the arguments of.B \-lare interpreted as actual power rather than dB..TP.BI \-G " low" : "high" " \fR[(none)]"Normalize gains to enhance features in low-level spectrum records.This option causes the mapping of data values to gray levels to beadjusted individually in each time slice.For example,.B \-G\-20:\-1meansthat anything more than 20 dB below the maximium value in the time slice

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -