An optical image measuring device forms an image of an object to be measured based on a result of light-receiving by a light-receiving part. This optical image measuring device comprises: a specifying part configured to specify the light irradiated state to the light-receiving surface of a light-receiving part via a light guiding part and a dispersion part and an altering part configured to alter the relative position and/or direction between a light-receiving surface and the exit end of light from the light guiding part, based on the light irradiated state.