Posts

Es werden Posts vom Juni, 2017 angezeigt.

Matlab: Sorting Songs/Files

( German ) This post describes a Matlab function which load out of a folder all songs, process them to a standarized name and save them in a folder in the different interpret folders. Mode of operation: First of all the path is chosen where the songs are, which should be sorted and then the folder is chosen, where the songs are copied to. Because in many folders are files like "..", ".", "desktop.ini", these are filtered. So now are all names of the file loaded. Next the name (interpret and songname) is devided and also further informations in the name like "(Official Video)" or "[pleer.net]" are cutted out.  Now the first song is taken and if there is a folder existing in the folder where it should be saved, then the song is saved, if it isn't already in the folder. If the interpret folder is not existing right now a new folder is generated with the name of the interpret and the song is copied into it. This is done for al

Matlab: Image background removing and cutting

Bild
( German ) This post is about a Matlab function where one can load an images and remove the background, by saving it as a transparent image. The background can consist out of different and blurring colors! Useful for prensentations that the image fits to the slice background. Mode of operation: This is a GUI based function, so that one can load via interface an images of any type. Now one can use the buttom "Choose BG" to select the background color in an additional appearing image. If it is chosen one see in figure 2 the extracted regions in white and in the lower left corner which color was selected. If one uses now the slider one can increase the range of the color. If the value is 10 and the chosen background color is [50 5 200] then the algorithm is also selecting every pixel with the colors between [40 0 190] and [60 15 210]. This is also seen in the lower left corner.  The buttom "next BG" can be used to select a second additional backgro