[Insight-users] RequestedRegion and LargestPossibleRegion

Iordanescu, Gheorghe (NIH/CC/DRD) GIordanescu at cc . nih . gov
Thu, 22 May 2003 15:18:03 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C32096.DDD6F020
Content-Type: text/plain

Hello everybody,

 

Here is my problem: I have a 3D data set (512x512x200) and I want to process
only a very small part of it (lets say 100x100x30) and save the results as
an image of the same dimensions (in pixels) as the input data (i.e
512x512x200). Since I am not concerned with the rest of the image, it could
have any value (either the values of the input image or some constant value)

 

What is the simplest way to process only a part of an image, but be able to
save the whole image?

 

Is there a way to fill the largest possible region of an image (of the
output of a filter) with some default value?

Should I use a blank image (filled with 0) of dimension 512x512x200 and add
to it somehow only the small output of the filter? Should I use an iterator
and fill only the non-filtered area of the image? 

 

Thank you,

 

George


------_=_NextPart_001_01C32096.DDD6F020
Content-Type: text/html

<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello everybody,</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here is my problem: I have a 3D data set (512x512x200) and I
want to process only a very small part of it (lets say 100x100x30) and save the
results as an image of the same dimensions (in pixels) as the input data (i.e 512x512x200).
Since I am not concerned with the rest of the image, it could have any value (either
the values of the input image or some constant value)</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What is the simplest way to process only a part of an image,
but be able to save the whole image?</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Is there a way to fill the largest possible region of an
image (of the output of a filter) with some default value?</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Should I use a blank image (filled with 0) of dimension 512x512x200
and add to it somehow only the small output of the filter? Should I use an iterator
and fill only the non-filtered area of the image? </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thank you,</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>George</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C32096.DDD6F020--