An image processing apparatus comprising: image obtaining means for obtaining images based on capturing by a plurality of image capturing apparatuses; and position obtaining means for obtaining information representing a predetermined position to which a plurality of the image capturing apparatuses are directed, characterized by further comprising: application purpose information obtaining means for obtaining application purpose information representing an application purpose of an estimation result of a three-dimensional shape of an object; region setting means for setting, based on the information obtained by the position obtaining means and the application purpose information obtained by the application purpose information obtaining means, a region to estimate the three-dimensional shape of the object; and estimation means for estimating, in the region set by the region setting means, the three-dimensional shape of the object based on the images obtained by the image obtaining means, wherein, in a case in which an application purpose represented by the application purpose information obtained by the application purpose information obtaining means is generation of a virtual viewpoint image based on a designated virtual viewpoint, the region setting means is configured to set a size of the region, which is smaller than that in a case in which the application purpose is motion analysis, and to set a size of a voxel that forms a three-dimensional space and is used to estimate the three-dimensional shape of the object to a size smaller than that in a case in which the application purpose is the motion analysis. image obtaining means for obtaining images based on capturing by a plurality of image capturing apparatuses; and position obtaining means for obtaining information representing a predetermined position to which a plurality of the image capturing apparatuses are directed, characterized by further comprising: application purpose information obtaining means for obtaining application purpose information representing an application purpose of an estimation result of a three-dimensional shape of an object; region setting means for setting, based on the information obtained by the position obtaining means and the application purpose information obtained by the application purpose information obtaining means, a region to estimate the three-dimensional shape of the object; and estimation means for estimating, in the region set by the region setting means, the three-dimensional shape of the object based on the images obtained by the image obtaining means, wherein, in a case in which an application purpose represented by the application purpose information obtained by the application purpose information obtaining means is generation of a virtual viewpoint image based on a designated virtual viewpoint, the region setting means is configured to set a size of the region, which is smaller than that in a case in which the application purpose is motion analysis, and to set a size of a voxel that forms a three-dimensional space and is used to estimate the three-dimensional shape of the object to a size smaller than that in a case in which the application purpose is the motion analysis. application purpose information obtaining means for obtaining application purpose information representing an application purpose of an estimation result of a three-dimensional shape of an object; region setting means for setting, based on the information obtained by the position obtaining means and the application purpose information obtained by the application purpose information obtaining means, a region to estimate the three-dimensional shape of the object; and estimation means for estimating, in the region set by the region setting means, the three-dimensional shape of the object based on the images obtained by the image obtaining means, wherein, in a case in which an application purpose represented by the application purpose information obtained by the application purpose information obtaining means is generation of a virtual viewpoint image based on a designated virtual viewpoint, the region setting means is configured to set a size of the region, which is smaller than that in a case in which the application purpose is motion analysis, and to set a size of a voxel that forms a three-dimensional space and is used to estimate the three-dimensional shape of the object to a size smaller than that in a case in which the application purpose is the motion analysis.