<p>I am using the shapenet dataset. From this dataset, I have 3d models in .obj format. I rendered the images of these 3d models using pyrender library which gives me an image like this :
<a href="https://i.sstatic.net/QGbzK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/QGbzK.png" alt="enter image description here"></a></p>

<p>Now I am using raycasting to voxelize this image. The voxel model I get is something like below :</p>

<p><a href="https://i.sstatic.net/Geqs6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Geqs6.png" alt="enter image description here"></a></p>

<p>I am not able to understand why I am getting the white or light brown colored artifacts in the boundary of the object.</p>

<p>The reason I could come up with was maybe the pixels at the boundary of the object contain two colors, so when I traverse the image as numpy array, I get an average of these two colors which gives me these artifacts. But I am not sure if this is the correct reason.</p>

<p>If anyone has any idea about what could be the reason, please let me know </p>

CC BY-SA 4.0
2020-01-07T00:40:55.197Z
This is off topic. @nbro
Clement
CC BY-SA 4.0
2020-01-08T11:16:19.700Z
I checked on google for the forums where I can ask questions about computer vision. This forum came up citing the reason that since "computer-vision" is available as one of the tags, questions related to this can be posted here
mascot
CC BY-SA 4.0
2020-01-08T15:04:39.137Z
Please refer to the help center for questions that is on topic. https://ai.stackexchange.com/help/on-topic
Clement
CC BY-SA 4.0
2020-01-08T15:05:59.427Z
The computer vision tag in this case means this: `For questions related to computer vision, which is an interdisciplinary scientific field (which can e.g. use image processing techniques) that deals with how computers can be made to gain high-level understanding from digital images or videos. For example, image recognition (that is, the identification of the type of objects in an image) is a computer vision problem` This is defined in the tag wiki of the computer-vision tag. Your question clearly does not fit the description of the tag.
Clement
CC BY-SA 4.0
2020-01-08T15:15:26.617Z
@mascot If you can put this problem in the context of computer vision, then this question may be on-topic here. Maybe try reformulating your question.
nbro
<computer-vision><image-processing>
Rendering images and voxelizing the images
mascot
# Rendering images and voxelizing the images

(Asked by: username_0 on 2020-01-06)

I am using the shapenet dataset. From this dataset, I have 3d models in .obj format. I rendered the images of these 3d models using pyrender library which gives me an image like this :
[![enter image description here](https://i.sstatic.net/QGbzK.png)](https://i.sstatic.net/QGbzK.png)

Now I am using raycasting to voxelize this image. The voxel model I get is something like below :

[![enter image description here](https://i.sstatic.net/Geqs6.png)](https://i.sstatic.net/Geqs6.png)

I am not able to understand why I am getting the white or light brown colored artifacts in the boundary of the object.

The reason I could come up with was maybe the pixels at the boundary of the object contain two colors, so when I traverse the image as numpy array, I get an average of these two colors which gives me these artifacts. But I am not sure if this is the correct reason.

If anyone has any idea about what could be the reason, please let me know

**Tags:** computer-vision, image-processing

> **Comments:**
> **username_1**: This is off topic. @username_2  
> **username_0**: I checked on google for the forums where I can ask questions about computer vision. This forum came up citing the reason that since "computer-vision" is available as one of the tags, questions related to this can be posted here  
> **username_1**: Please refer to the help center for questions that is on topic. https://ai.stackexchange.com/help/on-topic  
> **username_1**: The computer vision tag in this case means this: `For questions related to computer vision, which is an interdisciplinary scientific field (which can e.g. use image processing techniques) that deals with how computers can be made to gain high-level understanding from digital images or videos. For example, image recognition (that is, the identification of the type of objects in an image) is a computer vision problem` This is defined in the tag wiki of the computer-vision tag. Your question clearly does not fit the description of the tag.  
> **username_2**: @username_0 If you can put this problem in the context of computer vision, then this question may be on-topic here. Maybe try reformulating your question.  

---

## 0 answers

