Mobile app version of vmapp.org
Login or Join
Barnes313

: Dividing a 1GB JP2 image into equal small images I want to divide a 1GB pathology JP2 image into smaller images so I can work with them in MATLAB. As it's a large image I could not read

@Barnes313

Posted in: #Images

I want to divide a 1GB pathology JP2 image into smaller images so I can work with them in MATLAB. As it's a large image I could not read it to memory and I don't know how to divide the image. Is there any way to divide the image in MATLAB?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes313

2 Comments

Sorted by latest first Latest Oldest Best

 

@Michele215

The Matlab Image Processing toolbox allows you to read, write and convert image files.

Are you going to process the reduced resolution images in Matlab? If so, check the functions to work with large image files. The rsetwrite function allows you to create reduced resolution images from big files (R-Sets), which then you can load with the imtool function, for example.

If you only need to convert between image formats, or definitely the image is so big that you cannot read it in memory, use any image processing software to downsample it. For converting among practically any image format, you could use ImageMagick, which lets you work with gigabyte-sized images and allows downsampling as well.

10% popularity Vote Up Vote Down


 

@Sherry646

I don't have any experience with MATLAB, and you may have better luck in superuser, mathematics/mathoverflow, or stackoverflow.

However, I note that there is a patch note for MATLAB section R2010b [1]:


Efficient Display and Navigation of Very Large Images of Arbitrary
Format in imtool

The rsetwrite function allows you to create a multiresolution image
pyramid (R-Set) from a large image file. In previous releases, the
rsetwrite function accepted TIFF or NITF image files. Now, in addition
to accepting these image files, rsetwrite accepts ImageAdapter
objects. ImageAdapter objects allow you to work with images of
arbitrary file format. See Working with Data in Unsupported Formats
for guidelines on how to create an ImageAdapter object.


Which may be a hint: rsetwrite to make an "R-Set" in combination with ImageAdapter.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme