I have an image that I overlay with a patch and I can display several images on the same image. I want to be able to overlay the patch I tried to use the sublot command but it was not working. I have identified my axes and guardians below.
hFig = figure; HAx = Axis ('parent', HFIG); HAx2 = axis ('guardian', HFIG); FH = shape ('units', 'pixel', ... 'position', [300 300 440 500] ... 'menu', 'none', ... 'name', 'slider',. 'Number-titles', 'off', ... 'resize', 'off'); Subplot (1,2,1) imshow (image1, 'parent', 'hAx'); Patch (...., 'parent', 'hax'); Subplot (1,2,2) imshov (Image 2, 'parent', 'max2'); Patch (...., 'parent', 'hx2'); This is what I want to do, this is the basic idea, but for some reason I can not get it to work, do I handle it incorrectly?
Are you trying to do something like this:
Image1 = imread ('street1.jpg'); Image2 = Immed ('street2.jpg'); Ha1 = subplot (1,2,1); Imshow (Image1); X = mill (ha1, 'axim') / 2; Y = Mill (Ha1, 'Yim') / 2; Patches (X ([1 2 2]), Y ([1 2 2]), 'M', 'Face alpha', 0.5, 'Parent', Ha 1); Ha2 = subplot (1,2, 2); Imshow (Image2); X = mill (is 2, 'axim') / 2; Y = Mill (O2, 'Yim') / 2; Patches (X ([1 2 2]), Y ([1 2 2]), 'B', 'Face alpha', 0.3, 'Parent', is 2);
Comments
Post a Comment