The
data processing device according to one embodiment comprises: a
processing unit that derives, on the basis of a first parameter that indicates a condition at the time of capturing an image and that has been used for training a first model that reproduces a three-dimensional space from input images of a plurality of
viewpoints, a second parameter indicating a condition at the time of capturing an image captured at the same place as a place where an unnecessary object is present in the first model and under a condition that the unnecessary object is not present; a
processing unit that, on the basis of a rendering image obtained from the first model on the basis of the second parameter and information on the region in which the unnecessary object in the first model is present, generates a binary
mask image indicating the region in which the unnecessary object in the first model is present; and a
processing unit that uses the binary
mask image to create a second model from which a
Gaussian distribution corresponding to the region of the unnecessary object in the first model is removed, creates a fourth model by combining, with the second model, a third model in which a random
initial point in a region corresponding to the
Gaussian distribution removed from the first model is disposed, and outputs, on the basis of a rendering image obtained from the fourth model on the basis of the second parameter, the binary
mask image, and an image captured under the condition, a model that reproduces a three-dimensional space in which the fourth model has been trained and in which the unnecessary object is not present.