[Insight-users] Why GradientMagnitudeImageFilter produce zero value image?
Fucang Jia
Fucang Jia" <fcjia@ict.ac.cn
Fri, 6 Dec 2002 16:02:25 +0800
SGksIGV2ZXJ5b25lLA0KDQpJIGFtIHN0dWR5aW5nIGFuIGV4YW1wbGUgaW4gdGhlIElUSyB0dXRv
cmlhbCB0byBjYWxjdWxhdGUgdGhlIGdyYWRpZW50IG1hZ25pdHVkZSBvZiBhbiBpbWFnZSwgdGhl
IG91cHV0IGltYWdlIGlzIGFsbCB6ZXJvIHZhbHVlZCBwaXhlbC4gSSBkbyBub3Qga25vdyB0aGUg
cmVhc29uLCBJIGFsc28gdGhpbmsgYWJvdXQgdGhlIHJlc2NhbGluZywgYnV0IHJlc2NhbGUgZmls
dGVyIGRvZXMgbm90IHdvcmsuIENhbiBhbnlvbmUgdGVsbCBtZSB0aGUgZXJyb3I/DQoNClRoYW5r
cyENCg0KRnVjYW5nDQoNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT0NCg0KSGVyZSBpcyB0aGUgZXhhbXBsZSBjb2RlOg0KDQojaW5jbHVkZSAi
aXRrSW1hZ2UuaCINCiNpbmNsdWRlICJpdGtJbWFnZUZpbGVXcml0ZXIuaCINCiNpbmNsdWRlICJp
dGtJbWFnZUZpbGVSZWFkZXIuaCINCiNpbmNsdWRlICJpdGtQTkdJbWFnZUlPLmgiDQojaW5jbHVk
ZSAiaXRrTWV0YUltYWdlSU8uaCINCiNpbmNsdWRlICJpdGtHcmFkaWVudE1hZ25pdHVkZUltYWdl
RmlsdGVyLmgiDQoNCg0KaW50IG1haW4oIGludCBhcmdjLCBjaGFyICoqYXJndiApIHsNCnR5cGVk
ZWYgaXRrOjpJbWFnZTx1bnNpZ25lZCBjaGFyLCAyPiAgICAgIEltYWdlVHlwZTsNCnR5cGVkZWYg
aXRrOjpJbWFnZTxmbG9hdCwyPiAgICAgRmxvYXRJbWFnZVR5cGU7DQp0eXBlZGVmIGl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