# How to Restore resized images to original size

**URL:** https://discourse.julialang.org/t/how-to-restore-resized-images-to-original-size/85695
**Category:** New to Julia
**Tags:** question, images, semantic
**Created:** [August 13, 2022, 4:27am UTC](https://discourse.julialang.org/t/how-to-restore-resized-images-to-original-size/85695 "2022-08-13T04:27:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![momo1](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@momo1](https://discourse.julialang.org/u/momo1)
#### Post date: [August 13, 2022, 4:27am UTC](https://discourse.julialang.org/t/how-to-restore-resized-images-to-original-size/85695/1 "2022-08-13T04:27:09Z")

</div>

Hi, I’ve an image (extracted from pointcloud) which I’ve resized for UNet training. I used the following to resize all dataset’s images and target images

```julia
img_square = imresize(img_source, (400, 400));

```

I’m not sure how to get the image back to actual size? (so that I can extract semantic segmentation information from each pixel and map it back to pointcloud)
