Rank: 861 based on 158 downloads (last 30 days) and 5 files submitted
photo

Joao Henriques

E-mail
Company/University
University of Coimbra

Personal Profile:

Personal info and publications:
http://www.isr.uc.pt/~henriques/


 

Watch this Author's files

 

Files Posted by Joao Henriques View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Nov 2012 strjoin Joins cell array into a single string, with delimiter. Small, vectorized and fast. Author: Joao Henriques string, join, str 9 1
12 Feb 2012 Screenshot disptable - Display matrix with column or row labels Displays a matrix with per-column or per-row labels. Author: Joao Henriques table, display, matrix, labels 24 4
  • 5.0
5.0 | 2 ratings
12 Dec 2010 Screenshot Figure to play and analyze videos with custom plots on top A figure ready to scroll through and play videos. You can also draw any custom graphics on it. Author: Joao Henriques figure, video analysis, video processing, visualization, video, image processing 26 1
  • 5.0
5.0 | 1 rating
07 Jul 2010 Screenshot Fast edges of a color image (actual color, not converting to grayscale) Edges of a color image by the max gradient method. Author: Joao Henriques edges, edge detection, color image, image processing 75 8
  • 4.0
4.0 | 1 rating
28 Apr 2010 Screenshot textborder - Higher contrast text using a 1-pixel-thick border Draws text on a figure with a 1-pixel-thick border. Author: Joao Henriques border, text, figure, visualization 24 4
  • 3.5
3.5 | 2 ratings
Comments and Ratings by Joao Henriques View all
Updated File Comments Rating
03 Apr 2014 K-medoids K-medoids clustering algorithm Author: Mo Chen

Simple and elegant code, thanks!

03 Mar 2014 Worker Object Wrapper Simplifies managing resources such as large data within PARFOR loops and SPMD blocks Author: Parallel Computing Team

Works well, thanks!

It does consume a fair bit amount of memory though. Since "random access constant data" seems to be the most common model for many data-intensive applications, it would be great if Matlab somehow supports read-only shared memory across labs in the future.

29 Dec 2013 Insomnia: prevent computer sleep mode This small utility prevents, on Windows computers, the automatic sleep mode. Author: Francesco Montorsi

Awesome work! I added this to my startup.m and finish.m files so that the computer doesn't sleep when I have MATLAB open (since I'm usually doing some heavy number-crunching).

23 Oct 2013 textborder - Higher contrast text using a 1-pixel-thick border Draws text on a figure with a 1-pixel-thick border. Author: Joao Henriques

Hi Colin, I tried your code on R2012a but can't reproduce the bug.

I also developed the code on R2008b and used it with "surface" objects, of which "pcolor" is one example, and had no problems as well.

It must be a MATLAB bug in the specific version you're using. Which one is it?

13 Jun 2013 Modified CMRmap Produces a colour colormap, of arbitrary length, that is monochrome-compatible. Author: Christopher Hummersone

Comments and Ratings on Joao Henriques' Files View all
Updated File Comment by Comments Rating
24 Sep 2014 textborder - Higher contrast text using a 1-pixel-thick border Draws text on a figure with a 1-pixel-thick border. Author: Joao Henriques Sim

Works really nice. There a bug when using graphics with transparency (when the figure's render property is set to 'opengl'). It might be the same bug as Colin suffered. I fixed it by forcing the white text with an offset of 1 in its z coordinate, while the black text remains on the z=0 plane.

line 44 of the April 2010 version:
set(h, 'Position', [pos(1:2), 1])

17 Sep 2014 Fast edges of a color image (actual color, not converting to grayscale) Edges of a color image by the max gradient method. Author: Joao Henriques Aneesh

when i converts the given colour image to hsv image and performs this matlab code on hsv image, no edge information is getting... what is the reason??

23 Oct 2013 textborder - Higher contrast text using a 1-pixel-thick border Draws text on a figure with a 1-pixel-thick border. Author: Joao Henriques Joao Henriques

Hi Colin, I tried your code on R2012a but can't reproduce the bug.

I also developed the code on R2008b and used it with "surface" objects, of which "pcolor" is one example, and had no problems as well.

It must be a MATLAB bug in the specific version you're using. Which one is it?

17 Oct 2013 textborder - Higher contrast text using a 1-pixel-thick border Draws text on a figure with a 1-pixel-thick border. Author: Joao Henriques Colin

If anyone else has this trouble, here's the reason: When the function converts back to data units for the position of the offset text, for some reason Matlab sets the z value to 17.3205 (in my bug example). It doesn't do that when the entered values don't change the x and y positions, such as for the centered white text... My work around is to add a couple lines in the offset for-loop setting the z back to 0 after the unit conversion, like this:

pos = get(h(k),'Position');
set(h(k),'Position',[pos(1:2),0])

16 Oct 2013 textborder - Higher contrast text using a 1-pixel-thick border Draws text on a figure with a 1-pixel-thick border. Author: Joao Henriques Colin

This function works on a regular figure, but not if you are adding annotation over a pcolor plot. For some reason the four border text objects plot over the white centered one.

I've unsuccessfully tried the following modifications to the function:

1) adding an extra white centered one plotted first so that the black ones should be sandwhiched.

2) using uistack to explicitly try and tell Matlab which one to put on top.

Reversing the colors does not help. Something about the offsetting over a pcolor plot makes matlab force that text to stay on top in the plotting stack.

So unfortunately it's no use in the most likely situation I would want to add contrast to text.

Example of the bug:

pcolor(peaks)
textborder(30,30,'hello world')

Contact us