Find similar images to TI generated from a literature image % Connect to database for querying the gene symbols % Specify the MySQL parameters nanosinfo.host='nanos'; nanosinfo.name='insitu'; nanosinfo.user='erwin'; nanosinfo.password=''; % Connect to the database with the Matlab Database toolbox myconn=mysql_connect(nanosinfo) % Create TI and display litmesh = meshgen2('/Users/erwin/Desktop/manual2.tiff', ti, 1, 'verbose','dic','interactive'); figure; displaymesh(litmesh, ti.p_scale, ti.t) % Assume to compare it to stage 11-12 embryos % Retrieve all lateral TIs at stage 11-12 allStage11_idx = gmesh(myconn,ti,'%','lateral', 5, 0); % Run similarity search just with TIs esimilar3(ti, allStage11_idx, litmesh, 'distance', 'no_pdist', 'db', myconn) % Run the same search to display the images, all images are located in /Volumes/nanos-images/insitu_image_storage/ esimilar3(ti, allStage11_idx, litmesh, 'distance', 'no_pdist', 'db', myconn, 'images', '/Volumes/nanos-images/insitu_image_storage/')