Introducing artificial antidots into superconductors is an effective approach to manipulate vortex matter. It is of importance to study the effect of antidots on the magnetic field of a vortex and its temperature dependence. In our experiment, single vortices pinned at artificial antidots of different sizes as well as vortex pinned by random defects are investigated by using the scanning Hall probe microscope (SHPM). At certain height above the superconductor surface, the morphology of the vortices at various temperatures has been directly imaged. We have shown that the magnetic field distribution and its temperature dependences for all pinned vortices are similar. For both types of antidots, the penetration depth, rather than the antidot size, plays a dominant role in determining their vortex size at various temperatures. The Ginzburg-Landau (GL) simulations well support our experiments. The results set the stage for further theoretical analysis of the local field variations of the pinned vortices with temperature as well as for the design and fine tuning of pinned vortex lattices that can be used as magnetic templates for other systems.