Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ Comments/Suggestions/Bugs to:
> for more details). The results of texture synthesis are still qualitatively
> similar.

> [!WARNING]
>
> In https://github.com/LabForComputationalVision/textureSynth/pull/5, a small
> change was made to the plotting code for compatibility with recent versions
> of matlab. The code now works with Matlab >= 2023. Back-compatibility is
> unclear.

## INSTALLATION

1) download and unpack the code. You can put the code anywhere on your
Expand Down
4 changes: 2 additions & 2 deletions textureSynthesis.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@
end
end

imf = max(1,gcf-1); snrf = imf+1;
imf = max(1,get(gcf,'Number')-1); snrf = imf+1;
figure(imf); clf
subplot(1,2,1); grayRange = showIm(im,'auto',1); title('Starting image');
drawnow

prev_im=im;

imf = max(1,gcf-1);
imf = max(1,get(gcf, 'Number')-1);
figure(imf);
clf;showIm(im,'auto',1); title(sprintf('iteration 0'));

Expand Down