我正在尝试在子部分内插入一个图片。成功插入图片后,我发现文本格式不太好。
如图所示正如他们通过实验证明的那样位于一行中,但是当我在它们之间插入一个图形时,它们之间出现了间隙。但我并不想出现这个间隙。我希望带有图形的段落能够自动格式化。
我的代码:
\subsubsection{Measuring the objectness of image windows}
B. Alexe et al. \cite{1} presented a generic objectness measure, quantifying how likely it is for an image window to contain an object of any
class. They explicitly trained it to distinguish objects with a well-defined boundary in space, such as cows and telephones, from amorphous
background elements, such as grass and road. The measure combines in a Bayesian framework several image cues measuring characteristics of objects, such as appearing
from their surroundings and having a closed boundary. These include an
innovative cue to measure the closed boundary characteristic. Finally, they presented two applications of objectness. In the first, they sample a small number windows according to their
objectness probability and gave an algorithm to employ them as location priors for modern class-specific object detectors. As they showed
\begin{figure}[!htb]
\centering
\subfloat[a]{%
\includegraphics[width=0.4\linewidth]{images/obj1}}
\label{obj1}
\subfloat[b]{%
\includegraphics[width=0.4\linewidth]{images/obj2}}
\label{obj2}
\caption{Segmented Images}
\vspace{-.5cm}
\label{objectnessfig}
\end{figure}
experimentally, this greatly reduces the number of windows evaluated by the expensive class-specific model. In the second application,
they used objectness as a complementary score in addition to the class-specific model, which leads to fewer false positives. As shown in
several recent papers, objectness can act as a valuable focus of attention mechanism in many other applications operating on image
windows, including weakly supervised learning of object categories, unsupervised pixelwise segmentation, and object tracking in video.
Computing objectness is very efficient and takes only about 4 sec. per image. This technique finds out some image windows like Figure \ref{objectnessfig}.
我怎样才能写出一行而又不让它们之间有那么多空格和数字呢?
答案1
删除环境前后的空行 figure
,你的问题就解决了。你已经写了两个段落。一个以“正如他们所展示的”结尾,另一个以“实验性地”开头。文本之间的一个或多个空行相当于一个\par
控制序列。
一般情况下,最好将图表放在真正的段落之间,不要强制放置(htb
)并避免 LaTeX 规则(!
)。尝试不[!htb]
,只在某些图像中添加一些选项在最终版本中当您不同意图形的放置位置时。否则,让 LaTeX 为您工作。