F.11. CODELISTINGSFORCHAPTER11
589
if(strncmp("spo", type, 3) == 0){
special_opening(the_image, out_image,
value, threshold, number,
length,
width);
} /* * ends special opening operation */
/* special closing */
if(strncmp("spc", type, 3) == 0){
special_closing(the_image, out_image,
value, threshold, number,
length,
width);
} /* * ends special closing operation */
/* Euclidean Distance Measure e */
if(strncmp("edm", type, 3) == 0){
edm(the_image, out_image,
value,
length,
width);
} /* * ends Euclidean distance mesaure */
/* medial axis transform */
if(strncmp("mat", type, 3) == 0){
mat(the_image, out_image,
value,
length,
width);
} /* * ends medial axis transform operation */
write_image_array(name2, out_image);
free_image_array(out_image, length);
free_image_array(the_image, length);
} /* * ends main n */
show_mainsk_usage()
{
How to add pdf to powerpoint presentation - C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF in C#.net, ASP.NET MVC, WinForms, WPF
Online C# Tutorial for Creating PDF from Microsoft PowerPoint Presentation
pdf to ppt converter online for large; pdf to ppt converter online
How to add pdf to powerpoint presentation - VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to PDF in vb.net, ASP.NET MVC, WinForms, WPF
VB.NET Tutorial for Export PDF file from Microsoft Office PowerPoint
image from pdf to ppt; how to convert pdf to ppt using
590
APPENDIXF. SOURCECODELISTINGS
char response[80];
printf(
"\n\nNot enough parameters:"
"\n"
"\n usage: mainsk in-file out-file type value"
" [threshold-or-mask-type] [number]"
"\n"
"\n recall type: EROsion DILation n Mask-ERosion"
"\n
Mask_DIlation INTerior-outline"
"\n
EXTerior-outline THInning"
"\n
Dilate-Not-Join OPEning"
"\n
CLOsing SPecial-Opening"
"\n
SPecial-Closing"
"\n
Euclidean-Distance-Measure"
"\n
Medial-Axis-Transform");
printf("\nPress Enter to see more");
gets(response);
printf("\n"
"\n
MASK DILATION"
"\nmainsk in-file out-file mdi value mask-type"
"\n
MASK EROSION"
"\nmainsk in-file out-file mer value mask-type"
"\n
EROSION "
"\nmainsk in-file out-file ero value threshold"
"\n
DILATION "
"\nmainsk in-file out-file dil value threshold"
"\n
INTERIOR OUTLINE "
"\nmainsk in-file out-file int value mask-type"
"\n
EXTERIOR OUTLINE "
"\nmainsk in-file out-file ext value mask-type"
"\n
OPENING"
"\nmainsk in-file out-file ope value mask-type number"
"\n
CLOSING"
"\nmainsk in-file out-file clo value mask-type number");
printf("\n
THINNING"
"\nmainsk in-file out-file thi value threshold"
"\n
DILATE NOT JOIN"
"\nmainsk in-file out-file dnj value threshold"
"\n
SPECIAL CLOSING"
"\nmainsk in-file out-file spc value threshold number"
"\n
SPECIAL OPENING"
VB.NET PowerPoint: Use PowerPoint SDK to Create, Load and Save PPT
an empty PowerPoint file with our reliable .NET PPT document add-on; a fully customized blank PowerPoint file by using the smart PowerPoint presentation control
how to convert pdf to powerpoint in; how to convert pdf to powerpoint
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
index = 1 End If correctOrder.Add(index) Next clip art or screenshot to PowerPoint document slide powerful & profession imaging controls, PDF document, image
convert pdf file to powerpoint presentation; how to add pdf to powerpoint
F.12. CODELISTINGSFORCHAPTER12
591
"\nmainsk in-file out-file spo value threshold number"
"\n
EUCLIDEAN DISTANCE MEASURE"
"\nmainsk in-file out-file edm value"
"\n
MEDIAL AXIS TRANSFORM"
"\nmainsk in-file out-file mat value"
"\n "
"\n value e is usually 1"
"\n mask-type e is 1-4 inclusive"
"\n threshold d is 0-8 inclusive"
"\n number r is number of erosions or dilations"
"\n");
}
Listing11.3-ThemainskProgram
F.12 CodeListingsforChapter12
/***********************************************
*
*
file boole.c
*
*
Functions: This file contains
*
and_image
*
or_image
*
xor_image
*
nand_image
*
nor_image
*
not_image
*
*
Purpose:
*
These functions implement the basic
*
Boolean algebra functions AND, OR,
*
XOR, NAND, NOR, and NOT.
*
*
External Calls:
*
none
*
*
Modifications:
*
3 March 1993 - created
VB.NET PowerPoint: VB Codes to Create Linear and 2D Barcodes on
Here is a market-leading PowerPoint barcode add-on within VB.NET class, which means it as well as 2d barcodes QR Code, Data Matrix, PDF-417, etc.
and paste pdf into powerpoint; how to add pdf to powerpoint presentation
VB.NET PowerPoint: Merge and Split PowerPoint Document(s) with PPT
For Each doc As [String] In dirs docList.Add(doc) Next code in VB.NET to finish PowerPoint document splitting If you want to see more PDF processing functions
export pdf to powerpoint; pdf to powerpoint converter online
592
APPENDIXF. SOURCECODELISTINGS
*
22 August 1998 - modified to work on
*
entire images s at t once.
*
***********************************************/
#include "cips.h"
/************************************************
*
*
and_image(...
*
*
This function performs the e Boolean n AND
*
operation. The e output image = in1 AND in2.
*
This works for 0 non-zero o images. . If f both
*
in1 and in2 are non-zero, , the e output = in1.
*
*************************************************/
and_image(the_image, out_image,
rows, cols)
short **the_image,
**out_image;
long
cols, rows;
{
int
i, j;
for(i=0; i<rows; i++){
if( (i%10) == 0) printf(" %d", i);
for(j=0; j<cols; j++){
if( the_image[i][j] != 0
&&
out_image[i][j] != 0)
out_image[i][j] = the_image[i][j];
else
out_image[i][j] = 0;
} /* * ends loop over j */
} /* * ends loop over i */
} /* ends and_image */
VB.NET PowerPoint: Add Image to PowerPoint Document Slide/Page
of "AddPage", "InsertPage" and "DeletePage" to add, insert or delete any certain PowerPoint slide without & profession imaging controls, PDF document, tiff
picture from pdf to powerpoint; pdf to ppt converter
C# PDF Text Extract Library: extract text content from PDF file in
text content from source PDF document file for word processing, presentation and desktop How to C#: Extract Text Content from PDF File. Add necessary references
changing pdf to powerpoint; how to change pdf to ppt on
F.12. CODELISTINGSFORCHAPTER12
593
/************************************************
*
*
or_image(...
*
*
This function performs the Boolean n OR
*
operation. The e output image = in1 1 OR R in2.
*
This works for 0 non-zero images. . If f both
*
in1 and in2 are non-zero, the output = in1.
*
If in1 is non-zero, the output = in1.
*
If in1 is zero and in2 is non-zero, , the
*
output = in2.
*
*************************************************/
or_image(the_image, out_image,
rows, cols)
short **the_image,
**out_image;
long cols, , rows;
{
int
i, j;
for(i=0; i<rows; i++){
if ( (i%10) == 0) printf(" %d", i);
for(j=0; j<cols; j++){
if( the_image[i][j] != 0
||
out_image[i][j] != 0){
if(the_image[i][j] != 0)
out_image[i][j] = the_image[i][j];
else
out_image[i][j] = out_image[i][j];
}
else
out_image[i][j] = 0;
} /* * ends loop over j */
} /* * ends loop over i */
} /* * ends s or_image */
/************************************************
C# Create PDF from OpenOffice to convert odt, odp files to PDF in
In order to run the sample codes, the following steps would be necessary. Add necessary references: RasterEdge.XDoc.PDF.dll. RasterEdge.XDoc.PowerPoint.dll.
convert pdf to powerpoint slide; how to convert pdf into powerpoint on
VB.NET Create PDF from OpenOffice to convert odt, odp files to PDF
In order to run the sample codes, the following steps would be necessary. Add necessary references: RasterEdge.XDoc.PDF.dll. RasterEdge.XDoc.PowerPoint.dll.
export pdf into powerpoint; how to change pdf to powerpoint slides
594
APPENDIXF. SOURCECODELISTINGS
*
*
xor_image(...
*
*
This function performs the e Boolean n XOR
*
operation. The e output image = in1 XOR in2.
*
This works for 0 non-zero o images. . If
*
in1 is non-zero and in2 is s 0, , output = in1. If
*
in2 is non-zero and in1 is s 0, , output = in2.
*
If both in1 and in2 are non-zero, output = 0.
*
If both in1 and in2 are zero, output = 0.
*
*************************************************/
xor_image(the_image, out_image,
rows, cols)
short **the_image,
**out_image;
long cols, , rows;
{
int
i, j;
short answer;
for(i=0; i<rows; i++){
if ( (i%10) == 0) printf(" " %d", , i);
for(j=0; j<cols; j++){
if( (the_image[i][j] != = 0 0 &&
out_image[i][j] == = 0))
answer = the_image[i][j];
if( (the_image[i][j] == = 0 0 &&
out_image[i][j] != = 0))
answer = out_image[i][j];
if( (the_image[i][j] == = 0 0 &&
out_image[i][j] == = 0))
answer = 0;
if( (the_image[i][j] != = 0 0 &&
out_image[i][j] != = 0))
answer = 0;
out_image[i][j] = answer;
} /* * ends loop over j */
} /* * ends loop over i */
} /* ends xor_image */
F.12. CODELISTINGSFORCHAPTER12
595
/***********************************************
*
*
nand_image(...
*
*
This function performs the Boolean n NAND
*
operation. The e output image = in1 1 NAND D in2.
*
This works for 0 non-zero images. . If f both
*
in1 and in2 are non-zero, the output = 0.
*
Otherwise, the output = value.
*
************************************************/
nand_image(the_image, out_image,
value, rows, cols)
short
**the_image,
**out_image, value;
long cols, , rows;
{
int
i, j;
for(i=0; i<rows; i++){
if ( (i%10) == 0) printf(" %d", i);
for(j=0; j<cols; j++){
if( the_image[i][j] != 0
&&
out_image[i][j] != 0)
out_image[i][j] = 0;
else
out_image[i][j] = value;
} /* * ends loop over j */
} /* * ends loop over i */
} /* * ends s nand_image */
/***********************************************
*
*
nor_image(...
*
*
This function performs the Boolean n NOR
596
APPENDIXF. SOURCECODELISTINGS
*
operation. The e output image = in1 NOR in2.
*
This works for 0 non-zero o images. . If f niether
*
in1 nor in2 are non-zero, , the e output = value.
*
That is, if both in1 and in2 are zero, the
*
output = value.
*
************************************************/
nor_image(the_image, out_image,
value, rows, cols)
short **the_image,
**out_image, value;
long cols, , rows;
{
int
i, j;
for(i=0; i<rows; i++){
if ( (i%10) == 0) printf(" " %d", , i);
for(j=0; j<cols; j++){
if( the_image[i][j] == 0
&&
out_image[i][j] == 0)
out_image[i][j] = value;
else
out_image[i][j] = 0;
} /* * ends loop over j */
} /* * ends loop over i */
} /* ends nor_image */
/***********************************************
*
*
not_image(...
*
*
This function will complement the values
*
of the input image and put t them m into the
*
output image. It will complement using a
*
0-value scheme where value e is s one of the
*
input parameters.
*
************************************************/
F.12. CODELISTINGSFORCHAPTER12
597
not_image(the_image, out_image,
value, rows, cols)
short **the_image,
**out_image,
value;
long cols, , rows;
{
int
i, j;
for(i=0; i<rows; i++)
for(j=0; j<cols; j++)
out_image[i][j] = value;
for(i=0; i<rows; i++){
if ( (i%10) == 0) printf(" %d", i);
for(j=0; j<cols; j++){
if(the_image[i][j] == value)
out_image[i][j] = 0;
} /* * ends loop over j */
} /* * ends loop over i */
} /* * ends s not_image */
Listing12.1-TheBooleanSubroutines
/*********************************************
*
*
file boolean.c
*
*
Functions: This file contains
*
main
*
*
Purpose:
*
This file contains the main n calling
*
routine that calls the Boolean
*
operations.
*
*
External Calls:
*
imageio.c - create_image_file
*
read_image_array
598
APPENDIXF. SOURCECODELISTINGS
*
write_image_array
*
get_image_size
*
allocate_image_array
*
free_image_array
*
boole.c - and_image
*
or_image
*
xor_image
*
nand_image
*
nor_image
*
not_image
*
*
Modifications:
*
3 March 1993 - created
*
22 August 1998 - modified to work on
*
entire images s at t once.
*
19 September 1998 - - modified d to work with
*
all I O routines in imageio.c.
*
*********************************************/
#include "cips.h"
short **the_image;
short **out_image;
main(argc, argv)
int argc;
char *argv[];
{
char
name1[80], name2[80], , name3[80], , type[80];
long
length, width;
short
value;
/****************************************
*
*
Interpret the command d line e parameters.
*
*****************************************/
if(argc < 5){
printf(
"\n\nNot enough parameters:"
Documents you may be interested
Documents you may be interested