我是Matlab图像处理的新手,我试图从CT图像中分割LUNG和结节.我做了初始图像增强.
我搜索了很多,但我没有找到任何相关的材料.
试图从给定的图像中分割出肺部分; 然后检测肺部的结节.

代码我在Matlab中尝试过:
d1 = dicomread('000000.dcm');
d1ca = imadjust(d1);
d1nF = wiener2(d1ca);
d1Level = graythresh(d1nF);
d1sBW = im2bw(d1nF,d1Level);
sed = strel('diamon',1);
BWfinal = imerode(d1sBW,sed);
BWfinal = imerode(BWfinal,sed);
BWoutline = bwperim(BWfinal);
Segout = d1nF;
Segout(BWoutline) = 0;
edgePrewitt = edge(d1nF,'prewitt');
Run Code Online (Sandbox Code Playgroud)
上述代码的结果:

想要这样的结果:
http://oi41.tinypic.com/35me7pj.jpg
http://oi42.tinypic.com/2jbtk6p.jpg
http://oi44.tinypic.com/w0kthe.jpg
http://oi40.tinypic.com/nmfaio.jpg
http://oi41.tinypic.com/2nvdrie.jpg
http://oi43.tinypic.com/2nvdnhk.jpg
我知道专家可能很容易.请帮帮我.
谢谢!
我想显示类似这样的日期和时间格式"May 23 at 12:30pm".我在PHP手册中看到并发现:
// Prints something like: Monday 8th of August 2005 03:12:46 PM
echo date('l jS \of F Y h:i:s A');
Run Code Online (Sandbox Code Playgroud)
修改后,我设法得到
echo date('M j \of h:i a');
Run Code Online (Sandbox Code Playgroud)
它给了我 "May 23 of 12:30pm"
但是当我更换of用at它给我"May 23 a23 08:26 pm".
我不是出了什么问题.
对工作在与谷歌注册,使用PHP库V2,OAuth 2.0用户.
经过很长一段时间花在它上面我最终配置,它工作一次很好,但之后它没有工作.点击登录链接后,用户需要对Google进行身份验证.工作正常,直到认证完成.
在使用GET变量回调时:
?code=something&authuser=0&prompt=consent&session_state=something
Run Code Online (Sandbox Code Playgroud)
它产生以下错误:
致命错误:未捕获的异常"Google_AuthException",消息"在C:\ xampp\htdocs\test\google-api-php-client\src\auth\Google_OAuth2.php中收到OAuth2访问令牌错误消息:'invalid_client'':115堆栈跟踪:#0 C:\ xampp\htdocs\test\google-api-php-client\src\Google_Client.php(127):Google_OAuth2-> authenticate(Array,4/xUGSPbXR0LNzW ...')#1C:\xampp\htdocs\test\google-api-php-client\index.php(40):Google_Client-> authenticate('4/xUGSPbXR0LNzW ...')#2 {main}抛出C:\ xampp\htdocs \第115行的test\google-api-php-client\src\auth\Google_OAuth2.php
使用以下代码(它将帮助您理解):
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
require_once 'src/Google_Client.php';
require_once 'src/contrib/Google_PlusService.php';
session_start();
$client = new Google_Client();
$client->setApplicationName("Google+ PHP Starter Application");
$plus = new Google_PlusService($client);
if (isset($_REQUEST['logout'])) {
unset($_SESSION['access_token']);
}
if (isset($_GET['code'])) {
$client->authenticate($_GET['code']);
$_SESSION['access_token'] = $client->getAccessToken();
header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
}
if (isset($_SESSION['access_token'])) {
$client->setAccessToken($_SESSION['access_token']);
}
if ($client->getAccessToken()) {
$me = $plus->people->get('me');
$url = filter_var($me['url'], FILTER_VALIDATE_URL);
$img = …Run Code Online (Sandbox Code Playgroud) 我正在 Symfony 2 中开发一个多子域 Web 应用程序。
子域:
admin.example.com 是主要的托管站点。member.example.com 是另一个指向相同源代码的子域。正如此处的文档中所述,我将路由配置如下:
父路由member.example.com:
my_app_member:
resource: "@member.yml"
prefix: /
host: "member.example.com"
Run Code Online (Sandbox Code Playgroud)
注意:上面的路由是 中member.example.com定义的所有路由的父路由配置member.yml。
**现在我有另一条路线admin.example.com:**
admin_user_mod:
path: /admin/new
defaults: { _controller: "somecontroller" }
Run Code Online (Sandbox Code Playgroud)
但是,如果我必须admin_user_mod使用代码为路线生成完整的 url :
$modLink = $this->get("router")->generate('admin_user_mod');
Run Code Online (Sandbox Code Playgroud)
生成的路线路径是正确的,但基本URL仍然停留为member.example.com这应该是admin.example.com
有没有办法,或者我在上面的路由配置中缺少任何内容来获得所需的结果。
或者
是否有任何 symfony 事件侦听器来覆盖路由器的“ generate()”方法调用?
你所有的投入都是非常可观的。
谢谢
我想用jQuery 隐藏<li>标签上的<a>标签.
<ul>
<li>
<a href="'>Something</a>
</li>
<li>
<a href="'>Something</a>
</li>
<li>
<a href="'>Something</a>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
换句话说,如果有人点击link(<a></a>),其父级<li>将被隐藏.
php ×3
date ×1
google-api ×1
google-oauth ×1
html5 ×1
javascript ×1
jquery ×1
matlab ×1
oauth-2.0 ×1
routing ×1
symfony ×1
yaml ×1