What does get(imageplus) means?

public static Object getImage(String title) {
		String[] strings = getListImages();
		int[] is = WindowManager.getIDList();
		for (int i = 0; i < is.length; i++) {
			if (strings[i].equals(title)) {
				ImagePlus imageplus = WindowManager.getImage(is[i]);
				return get(imageplus);
			}
		}
}

This code find the image based on the image window title, then return the get(imageplus).
It is from the mij.java source code(http://bigwww.epfl.ch/sage/soft/mij/MIJ.java), but I didn’t find the java method “get” for imageplus object from Imageplus API document.

When I run this method, it returns the pixel intensity matrix(e.g., 4543x234 int16).

aMatrix =MIJ.getImage('CDF34.mrxs(d=10.00,x=0,y=0,w=50729,h=51406,_z0,_t0,_c2).tif');

....
      1      2      2      2      2      2      2      2      2      2      2      2      2      2      2      2
      1      1      2      2      2      2      2      2      2      2      2      2      2      2      2      2      2
      1      1      2      2      2      2      2      2      2      2      2      2      2      2      2      2      2
      1      1      2      2      2      2      2      2      2      2      2      2      2      2      2      2      2
      0      0      2      2      2      2      2      2      2      2      2      2      2      2      2      2      2
      1      1      2      2      2      2      2      2      2      2      2      2      2      2      2      2      2
      1      1      2      2....

However, in matlab, if I run the code below:

ips = IJ.openImage('the path to image');
get(ips)

it just echo the properties of ips object:

                      ID: -2
                NChannels: 1
              NDimensions: 2
                  NFrames: 1
                  NSlices: 1
            AllStatistics: [1x1 ij.process.ByteStatistics]
                 BitDepth: 8
            BufferedImage: [1x1 java.awt.image.BufferedImage]
            BytesPerPixel: 1
                        C: 1
              Calibration: [1x1 ij.measure.Calibration]
                   Canvas: [1x1 ij.gui.ImageCanvas]
                  Channel: 1
         ChannelProcessor: [1x1 ij.process.ByteProcessor]
                    Class: [1x1 java.lang.Class]
                Composite: 0
            CompositeMode: -1
             CurrentSlice: 1
               Dimensions: [5x1 int32]
              DisplayMode: 0
          DisplayRangeMax: 255
          DisplayRangeMin: 0
      DisplayedHyperStack: 0
                 FileInfo: [1x1 ij.io.FileInfo]
                    Frame: 1
        GlobalCalibration: []
                   Height: 5141
              HideOverlay: 0
               HyperStack: 0
                    Image: [1x1 java.awt.image.BufferedImage]
               ImageStack: [1 ij.ImageStack]
           ImageStackSize: 1
             InfoProperty: ''
              InvertedLut: 0
         LocalCalibration: [1x1 ij.measure.Calibration]
                   Locked: 0
    LockedByAnotherThread: 0
                     Luts: [1x1 ij.process.LUT[]]
                     Mask: [1x1 ij.process.ByteProcessor]
         OpenAsHyperStack: 0
         OriginalFileInfo: [1x1 ij.io.FileInfo]
                  Overlay: []
                     Plot: []
                Processor: 1
               Properties: []
            RawStatistics: [1x1 ij.process.ByteStatistics]
                      Roi: [92 ij.gui.OvalRoi]
               ShortTitle: 'CDF34.mrxs(d=10.00,x=0,y=0,w=50729,h=51406,_z0,_t0,_c2)'
              SizeInBytes: 26080293
                    Slice: 1
                    Stack: 1
                StackSize: 1
                StartTime: 0
                        T: 1
                Threshold: 0
                    Title: 'CDF34.mrxs(d=10.00,x=0,y=0,w=50729,h=51406,_z0,_t0,_c2).tif'
                     Type: 0
                  Visible: 1
                    Width: 5073
                   Window: [1x1 ij.gui.ImageWindow]
                        Z: 1

Why the method “get” returns different things in java and matlab?

Please note the tags when you create a new topic are important so that your question will be found. If you are currently browsing https://forum.image.sc/tags/qupath then the ‘qupath’ tag will be added by default, but it doesn’t seem to be relevant here.

I added imagej and matlab.

The get function was defined in mij.java, not in imageplus API.
Solved