This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def extractParticles(greyIm, LabIm): | |
locations = nd.find_objects(LabIm) | |
i=1 | |
extracted_images=[] | |
for loc in locations: | |
lab_image = np.copy(LabIm[loc]) | |
grey_image = np.copy(greyIm[loc]) | |
lab_image[lab_image<>i]=0 | |
grey_image[lab_image <>i]=0 | |
extracted_images.append(grey_image) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Apr 7 15:19:19 2011 | |
@author: Jean-Patrick Pommier | |
http://www.dip4fish.blogspot.com | |
""" | |
from __future__ import division | |
import numpy as np | |
from scipy import ndimage as nd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:kivy 1.0 | |
#:import kivy kivy | |
#:import win kivy.core.window | |
FloatLayout: | |
canvas: | |
Color: | |
rgb: 1, 1, 1 | |
Rectangle: | |
source: 'data/images/background.jpg' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Pictures demo | |
============= | |
This is a basic picture viewer, using the scatter widget. | |
''' | |
import os | |
import kivy | |
kivy.require('1.0.6') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "largest object" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |